commit 7cf53f9a625966694125624b3c0b59f0d38c686c Author: 曹磊 <45566618@qq.com> Date: Wed Jul 2 09:18:59 2025 +0800 温度采集后台代码初始化 diff --git a/wsdjc/.classpath b/wsdjc/.classpath new file mode 100644 index 0000000..a709c65 --- /dev/null +++ b/wsdjc/.classpath @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/wsdjc/.metadata/.lock b/wsdjc/.metadata/.lock new file mode 100644 index 0000000..e69de29 diff --git a/wsdjc/.metadata/.log b/wsdjc/.metadata/.log new file mode 100644 index 0000000..590b3cd --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.mylyn/repositories.xml.zip b/wsdjc/.metadata/.mylyn/repositories.xml.zip new file mode 100644 index 0000000..397fd69 Binary files /dev/null and b/wsdjc/.metadata/.mylyn/repositories.xml.zip differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version b/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version new file mode 100644 index 0000000..25cb955 --- /dev/null +++ b/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index b/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index new file mode 100644 index 0000000..c0afb6e Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version b/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version new file mode 100644 index 0000000..6b2aaa7 --- /dev/null +++ b/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree b/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree new file mode 100644 index 0000000..af0d998 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.root/1.tree differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources new file mode 100644 index 0000000..7fcf31e Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.collabnet.subversion.merge.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.collabnet.subversion.merge.prefs new file mode 100644 index 0000000..7ae6d53 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..dffc6b5 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.epp.logging.aeri.ide.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.epp.logging.aeri.ide.prefs new file mode 100644 index 0000000..c186df8 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..a0fcc98 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.j2ee.webservice.ui.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jst.j2ee.webservice.ui.prefs new file mode 100644 index 0000000..553bb96 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.m2e.discovery.prefs new file mode 100644 index 0000000..67b1d96 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.context.core.prefs new file mode 100644 index 0000000..43e97e4 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.monitor.ui.prefs new file mode 100644 index 0000000..8d462a6 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.mylyn.tasks.ui.prefs new file mode 100644 index 0000000..5330e43 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.core.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.core.prefs new file mode 100644 index 0000000..b715e17 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.ui.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.rse.ui.prefs new file mode 100644 index 0000000..06ee7fa --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs new file mode 100644 index 0000000..56cd496 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs new file mode 100644 index 0000000..61f3bb8 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs new file mode 100644 index 0000000..c4e5376 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs new file mode 100644 index 0000000..6e3143d --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.tigris.subversion.subclipse.tools.usage.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.tigris.subversion.subclipse.tools.usage.prefs new file mode 100644 index 0000000..b446e4e --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.tigris.subversion.subclipse.ui.prefs b/wsdjc/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.tigris.subversion.subclipse.ui.prefs new file mode 100644 index 0000000..1c00496 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/wsdjc/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi new file mode 100644 index 0000000..f90ae21 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fdt b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fdt differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fdx b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fdx differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.fnm b/wsdjc/.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/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.frq b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.nrm b/wsdjc/.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/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.tii b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.tii differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.tis b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/_0.tis differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/segments.gen b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/segments.gen differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/segments_1 b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/segments_1 differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/local-history/write.lock b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fdt b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fdt differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fdx b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fdx differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.fnm b/wsdjc/.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/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.frq b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.nrm b/wsdjc/.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/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.tii b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.tii differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.tis b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/_0.tis differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/segments.gen b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/segments.gen differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/segments_1 b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.epp.logging.aeri.ide/org.eclipse.epp.logging.aeri.ide.server/remote-history/segments_1 differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache b/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache new file mode 100644 index 0000000..593f470 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/assumedExternalFilesCache differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache b/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache new file mode 100644 index 0000000..593f470 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache b/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache new file mode 100644 index 0000000..593f470 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat b/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat new file mode 100644 index 0000000..3de398e Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.jdt.core/variablesAndContainers.dat differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml b/wsdjc/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml new file mode 100644 index 0000000..a4ee3cb --- /dev/null +++ b/wsdjc/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml @@ -0,0 +1,2 @@ + + diff --git a/wsdjc/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml b/wsdjc/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml new file mode 100644 index 0000000..9e390f5 --- /dev/null +++ b/wsdjc/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml @@ -0,0 +1,2 @@ + + diff --git a/wsdjc/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml b/wsdjc/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml new file mode 100644 index 0000000..304eb7b --- /dev/null +++ b/wsdjc/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml @@ -0,0 +1,5 @@ + +
+
+
+
diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core.ui/dialog_settings.xml b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core.ui/dialog_settings.xml new file mode 100644 index 0000000..09e4b9e --- /dev/null +++ b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core.ui/dialog_settings.xml @@ -0,0 +1,63 @@ + +
+
+ + + + + + + + + + + + + + + + + +
+
+ + + + + + + + +
+
+ + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/_0.cfs b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/_0.cfs new file mode 100644 index 0000000..10c0c85 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/_0.cfs differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments.gen b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments.gen new file mode 100644 index 0000000..225a55b Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments.gen differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments_2 b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments_2 new file mode 100644 index 0000000..625fff0 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/segments_2 differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/write.lock b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/05b0fe8524860bd73cbb07ef30fb34cc/write.lock new file mode 100644 index 0000000..e69de29 diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/_0.cfs b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/_0.cfs new file mode 100644 index 0000000..2510e88 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/_0.cfs differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments.gen b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments.gen new file mode 100644 index 0000000..225a55b Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments.gen differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments_2 b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments_2 new file mode 100644 index 0000000..ad50fa5 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/segments_2 differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/write.lock b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/830bc118332e77292949ed1e6d2fabe0/write.lock new file mode 100644 index 0000000..e69de29 diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/_0.cfs b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/_0.cfs new file mode 100644 index 0000000..393fad9 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/_0.cfs differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments.gen b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments.gen new file mode 100644 index 0000000..225a55b Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments.gen differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments_2 b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments_2 new file mode 100644 index 0000000..f3b73b7 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/segments_2 differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/write.lock b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/nexus/854f66e016ea3e43b9953b679cfb6144/write.lock new file mode 100644 index 0000000..e69de29 diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser new file mode 100644 index 0000000..4632fc4 Binary files /dev/null and b/wsdjc/.metadata/.plugins/org.eclipse.m2e.core/workspaceState.ser differ diff --git a/wsdjc/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.7.0.20160603-1933.xml b/wsdjc/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.7.0.20160603-1933.xml new file mode 100644 index 0000000..e33758c --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup b/wsdjc/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup new file mode 100644 index 0000000..1f73e14 --- /dev/null +++ b/wsdjc/.metadata/.plugins/org.eclipse.oomph.setup/workspace.setup @@ -0,0 +1,6 @@ + + diff --git a/wsdjc/.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties b/wsdjc/.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties new file mode 100644 index 0000000..81d0012 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.rse.core/.log b/wsdjc/.metadata/.plugins/org.eclipse.rse.core/.log new file mode 100644 index 0000000..e69de29 diff --git a/wsdjc/.metadata/.plugins/org.eclipse.rse.core/initializerMarks/org.eclipse.rse.internal.core.RSELocalConnectionInitializer.mark b/wsdjc/.metadata/.plugins/org.eclipse.rse.core/initializerMarks/org.eclipse.rse.internal.core.RSELocalConnectionInitializer.mark new file mode 100644 index 0000000..e69de29 diff --git a/wsdjc/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/FP.local.files_0/node.properties b/wsdjc/.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/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/H.local_16/node.properties b/wsdjc/.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/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/node.properties b/wsdjc/.metadata/.plugins/org.eclipse.rse.core/profiles/PRF.desktop-16fc8ll_32539/node.properties new file mode 100644 index 0000000..1490258 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.rse.ui/.log b/wsdjc/.metadata/.plugins/org.eclipse.rse.ui/.log new file mode 100644 index 0000000..e69de29 diff --git a/wsdjc/.metadata/.plugins/org.eclipse.tm.terminal.view.ui/.executables/data.properties b/wsdjc/.metadata/.plugins/org.eclipse.tm.terminal.view.ui/.executables/data.properties new file mode 100644 index 0000000..82c1325 --- /dev/null +++ b/wsdjc/.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/wsdjc/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml b/wsdjc/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml new file mode 100644 index 0000000..95ca575 --- /dev/null +++ b/wsdjc/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml @@ -0,0 +1,5 @@ + +
+
+
+
diff --git a/wsdjc/.metadata/.plugins/org.eclipse.ui.intro/introstate b/wsdjc/.metadata/.plugins/org.eclipse.ui.intro/introstate new file mode 100644 index 0000000..236d56c --- /dev/null +++ b/wsdjc/.metadata/.plugins/org.eclipse.ui.intro/introstate @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/wsdjc/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml b/wsdjc/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml new file mode 100644 index 0000000..347a32c --- /dev/null +++ b/wsdjc/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml @@ -0,0 +1,17 @@ + +
+
+ + + + + + + + + + +
+
+
+
diff --git a/wsdjc/.metadata/version.ini b/wsdjc/.metadata/version.ini new file mode 100644 index 0000000..b774c31 --- /dev/null +++ b/wsdjc/.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/wsdjc/.project b/wsdjc/.project new file mode 100644 index 0000000..44312df --- /dev/null +++ b/wsdjc/.project @@ -0,0 +1,31 @@ + + + wsdjc + + + + + + 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/wsdjc/.settings/.jsdtscope b/wsdjc/.settings/.jsdtscope new file mode 100644 index 0000000..92e666d --- /dev/null +++ b/wsdjc/.settings/.jsdtscope @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/wsdjc/.settings/org.eclipse.jdt.core.prefs b/wsdjc/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..0c68a61 --- /dev/null +++ b/wsdjc/.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/wsdjc/.settings/org.eclipse.wst.common.component b/wsdjc/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..c9dde01 --- /dev/null +++ b/wsdjc/.settings/org.eclipse.wst.common.component @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/wsdjc/.settings/org.eclipse.wst.common.project.facet.core.xml b/wsdjc/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..c4292f0 --- /dev/null +++ b/wsdjc/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/wsdjc/.settings/org.eclipse.wst.jsdt.ui.superType.container b/wsdjc/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/wsdjc/.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/wsdjc/.settings/org.eclipse.wst.jsdt.ui.superType.name b/wsdjc/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/wsdjc/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/wsdjc/.svn/entries b/wsdjc/.svn/entries new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/wsdjc/.svn/entries @@ -0,0 +1 @@ +12 diff --git a/wsdjc/.svn/format b/wsdjc/.svn/format new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/wsdjc/.svn/format @@ -0,0 +1 @@ +12 diff --git a/wsdjc/.svn/pristine/02/02df2beb658791969c5bae8a0dddd31a34497aa1.svn-base b/wsdjc/.svn/pristine/02/02df2beb658791969c5bae8a0dddd31a34497aa1.svn-base new file mode 100644 index 0000000..a709c65 --- /dev/null +++ b/wsdjc/.svn/pristine/02/02df2beb658791969c5bae8a0dddd31a34497aa1.svn-base @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/wsdjc/.svn/pristine/0c/0ce1edb914c94ebc388f086c6827e8bdeec71ac2.svn-base b/wsdjc/.svn/pristine/0c/0ce1edb914c94ebc388f086c6827e8bdeec71ac2.svn-base new file mode 100644 index 0000000..98467d3 Binary files /dev/null and b/wsdjc/.svn/pristine/0c/0ce1edb914c94ebc388f086c6827e8bdeec71ac2.svn-base differ diff --git a/wsdjc/.svn/pristine/0d/0d806cd07a3f5e3ef6754c1e6b455dae4c9eeb87.svn-base b/wsdjc/.svn/pristine/0d/0d806cd07a3f5e3ef6754c1e6b455dae4c9eeb87.svn-base new file mode 100644 index 0000000..e345533 --- /dev/null +++ b/wsdjc/.svn/pristine/0d/0d806cd07a3f5e3ef6754c1e6b455dae4c9eeb87.svn-base @@ -0,0 +1,21 @@ +package com.surfbird.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/wsdjc/.svn/pristine/0f/0f43c47f913cb0a6610b092fc6b1b3afceb57f56.svn-base b/wsdjc/.svn/pristine/0f/0f43c47f913cb0a6610b092fc6b1b3afceb57f56.svn-base new file mode 100644 index 0000000..c276b7c --- /dev/null +++ b/wsdjc/.svn/pristine/0f/0f43c47f913cb0a6610b092fc6b1b3afceb57f56.svn-base @@ -0,0 +1,7 @@ + + + + + INSERT INTO TQL_DATACOLLECT(CONTENT, INSTRUCATION) VALUES(#{content}, #{instrucation}) + + \ No newline at end of file diff --git a/wsdjc/.svn/pristine/12/1221fce2decb8ddc7bf2043f4067fe5bfe584a08.svn-base b/wsdjc/.svn/pristine/12/1221fce2decb8ddc7bf2043f4067fe5bfe584a08.svn-base new file mode 100644 index 0000000..19ae60e --- /dev/null +++ b/wsdjc/.svn/pristine/12/1221fce2decb8ddc7bf2043f4067fe5bfe584a08.svn-base @@ -0,0 +1,19 @@ + + + + + CALL P_Q_D_HEATANALYSIS(#{code}, #{sim}, #{datatime}, #{view005}, #{view006}, #{view007}, #{view008}, #{view009}, #{view010}, #{view011}, #{view012}) + + + + + + + + + + \ No newline at end of file diff --git a/wsdjc/.svn/pristine/15/15314cf641e529438f676a7bdb51c10b33fab9a5.svn-base b/wsdjc/.svn/pristine/15/15314cf641e529438f676a7bdb51c10b33fab9a5.svn-base new file mode 100644 index 0000000..28b893f --- /dev/null +++ b/wsdjc/.svn/pristine/15/15314cf641e529438f676a7bdb51c10b33fab9a5.svn-base @@ -0,0 +1,10 @@ +package com.surfbird.business.service; + +import org.springframework.stereotype.Service; + +import com.surfbird.business.bean.HeatAnalyze; +import com.surfbird.business.dao.HeatCollectDao; +import com.surfbird.common.service.SqlServerService; + +@Service +public class HeatCollectService extends SqlServerService {} diff --git a/wsdjc/.svn/pristine/16/16390e2d74df4ab08c06a85d42a74a951dc93ad7.svn-base b/wsdjc/.svn/pristine/16/16390e2d74df4ab08c06a85d42a74a951dc93ad7.svn-base new file mode 100644 index 0000000..ce5ff60 Binary files /dev/null and b/wsdjc/.svn/pristine/16/16390e2d74df4ab08c06a85d42a74a951dc93ad7.svn-base differ diff --git a/wsdjc/.svn/pristine/1d/1d6d36f32dae7e15ff654bb2775c62cdb7f810f5.svn-base b/wsdjc/.svn/pristine/1d/1d6d36f32dae7e15ff654bb2775c62cdb7f810f5.svn-base new file mode 100644 index 0000000..eeb549d --- /dev/null +++ b/wsdjc/.svn/pristine/1d/1d6d36f32dae7e15ff654bb2775c62cdb7f810f5.svn-base @@ -0,0 +1,8 @@ +package com.surfbird.business.dao; + +import com.surfbird.business.bean.HeatAnalyze; +import com.surfbird.common.annotation.MyBatis; +import com.surfbird.common.dao.SurfbirdDao; + +@MyBatis +public interface HeatAnalyzeDao extends SurfbirdDao {} diff --git a/wsdjc/.svn/pristine/1e/1e48256a2341047e7d729217adeec8217f6e3a1a.svn-base b/wsdjc/.svn/pristine/1e/1e48256a2341047e7d729217adeec8217f6e3a1a.svn-base new file mode 100644 index 0000000..131f192 Binary files /dev/null and b/wsdjc/.svn/pristine/1e/1e48256a2341047e7d729217adeec8217f6e3a1a.svn-base differ diff --git a/wsdjc/.svn/pristine/1f/1fc4d17efa80dc375767b0c1006584175212e9dc.svn-base b/wsdjc/.svn/pristine/1f/1fc4d17efa80dc375767b0c1006584175212e9dc.svn-base new file mode 100644 index 0000000..d866860 Binary files /dev/null and b/wsdjc/.svn/pristine/1f/1fc4d17efa80dc375767b0c1006584175212e9dc.svn-base differ diff --git a/wsdjc/.svn/pristine/24/243a23f8968de8754d8199d669780d683ab177bd.svn-base b/wsdjc/.svn/pristine/24/243a23f8968de8754d8199d669780d683ab177bd.svn-base new file mode 100644 index 0000000..2296e5e Binary files /dev/null and b/wsdjc/.svn/pristine/24/243a23f8968de8754d8199d669780d683ab177bd.svn-base differ diff --git a/wsdjc/.svn/pristine/28/286d98dc6bed3021f76a241d593fd713515777dd.svn-base b/wsdjc/.svn/pristine/28/286d98dc6bed3021f76a241d593fd713515777dd.svn-base new file mode 100644 index 0000000..bf0e856 Binary files /dev/null and b/wsdjc/.svn/pristine/28/286d98dc6bed3021f76a241d593fd713515777dd.svn-base differ diff --git a/wsdjc/.svn/pristine/2d/2d859791fbf7d880591864bd4004d8442a8a3b81.svn-base b/wsdjc/.svn/pristine/2d/2d859791fbf7d880591864bd4004d8442a8a3b81.svn-base new file mode 100644 index 0000000..8758a96 Binary files /dev/null and b/wsdjc/.svn/pristine/2d/2d859791fbf7d880591864bd4004d8442a8a3b81.svn-base differ diff --git a/wsdjc/.svn/pristine/2e/2e04c6c2922fbfa06b5948be14a5782db168b6ec.svn-base b/wsdjc/.svn/pristine/2e/2e04c6c2922fbfa06b5948be14a5782db168b6ec.svn-base new file mode 100644 index 0000000..4e96d8f Binary files /dev/null and b/wsdjc/.svn/pristine/2e/2e04c6c2922fbfa06b5948be14a5782db168b6ec.svn-base differ diff --git a/wsdjc/.svn/pristine/30/307176864bae7e1d069eb46bdff264cfb96b5c65.svn-base b/wsdjc/.svn/pristine/30/307176864bae7e1d069eb46bdff264cfb96b5c65.svn-base new file mode 100644 index 0000000..fb444c1 --- /dev/null +++ b/wsdjc/.svn/pristine/30/307176864bae7e1d069eb46bdff264cfb96b5c65.svn-base @@ -0,0 +1,44 @@ +package com.surfbird.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/wsdjc/.svn/pristine/30/30be73c965cc990b153a100aaaaafcf239f82d39.svn-base b/wsdjc/.svn/pristine/30/30be73c965cc990b153a100aaaaafcf239f82d39.svn-base new file mode 100644 index 0000000..c4c1c4f Binary files /dev/null and b/wsdjc/.svn/pristine/30/30be73c965cc990b153a100aaaaafcf239f82d39.svn-base differ diff --git a/wsdjc/.svn/pristine/34/34ad4617f175ff6ab3f0f627940f296905791432.svn-base b/wsdjc/.svn/pristine/34/34ad4617f175ff6ab3f0f627940f296905791432.svn-base new file mode 100644 index 0000000..2bf344b --- /dev/null +++ b/wsdjc/.svn/pristine/34/34ad4617f175ff6ab3f0f627940f296905791432.svn-base @@ -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/wsdjc/.svn/pristine/37/3779011d5cbf31325609547e8d058f8a4d812ac6.svn-base b/wsdjc/.svn/pristine/37/3779011d5cbf31325609547e8d058f8a4d812ac6.svn-base new file mode 100644 index 0000000..92e666d --- /dev/null +++ b/wsdjc/.svn/pristine/37/3779011d5cbf31325609547e8d058f8a4d812ac6.svn-base @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/wsdjc/.svn/pristine/38/386375d218213d57250b60b7ae046bb5b802258b.svn-base b/wsdjc/.svn/pristine/38/386375d218213d57250b60b7ae046bb5b802258b.svn-base new file mode 100644 index 0000000..706f01c --- /dev/null +++ b/wsdjc/.svn/pristine/38/386375d218213d57250b60b7ae046bb5b802258b.svn-base @@ -0,0 +1,8 @@ +package com.surfbird.business.dao; + +import com.surfbird.business.bean.HeatAnalyze; +import com.surfbird.common.annotation.MyBatis; +import com.surfbird.common.dao.SurfbirdDao; + +@MyBatis +public interface HeatCollectDao extends SurfbirdDao {} diff --git a/wsdjc/.svn/pristine/3e/3edd1272669ab20ff086cb17a3c509c04de998b0.svn-base b/wsdjc/.svn/pristine/3e/3edd1272669ab20ff086cb17a3c509c04de998b0.svn-base new file mode 100644 index 0000000..b92d06e --- /dev/null +++ b/wsdjc/.svn/pristine/3e/3edd1272669ab20ff086cb17a3c509c04de998b0.svn-base @@ -0,0 +1,17 @@ +package com.surfbird.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/wsdjc/.svn/pristine/41/41dfc0a6c92707948578891c51d98c6443be63cc.svn-base b/wsdjc/.svn/pristine/41/41dfc0a6c92707948578891c51d98c6443be63cc.svn-base new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/wsdjc/.svn/pristine/41/41dfc0a6c92707948578891c51d98c6443be63cc.svn-base @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/wsdjc/.svn/pristine/42/42507ad0d43a9e2d486639a3a748810bc551391f.svn-base b/wsdjc/.svn/pristine/42/42507ad0d43a9e2d486639a3a748810bc551391f.svn-base new file mode 100644 index 0000000..7c19586 --- /dev/null +++ b/wsdjc/.svn/pristine/42/42507ad0d43a9e2d486639a3a748810bc551391f.svn-base @@ -0,0 +1,10 @@ +package com.surfbird.business.service; + +import org.springframework.stereotype.Service; + +import com.surfbird.business.bean.Instrucation; +import com.surfbird.business.dao.InstrucationDao; +import com.surfbird.common.service.SurfbirdService; + +@Service +public class InstrucationService extends SurfbirdService {} diff --git a/wsdjc/.svn/pristine/43/43c4a38ebf7894de248c4705ba5106ca4174bc79.svn-base b/wsdjc/.svn/pristine/43/43c4a38ebf7894de248c4705ba5106ca4174bc79.svn-base new file mode 100644 index 0000000..54b562b --- /dev/null +++ b/wsdjc/.svn/pristine/43/43c4a38ebf7894de248c4705ba5106ca4174bc79.svn-base @@ -0,0 +1,20 @@ +package com.surfbird.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/wsdjc/.svn/pristine/4c/4ca59b21c61162adb146ad1b40c30b60d8dc42b8.svn-base b/wsdjc/.svn/pristine/4c/4ca59b21c61162adb146ad1b40c30b60d8dc42b8.svn-base new file mode 100644 index 0000000..2daca86 Binary files /dev/null and b/wsdjc/.svn/pristine/4c/4ca59b21c61162adb146ad1b40c30b60d8dc42b8.svn-base differ diff --git a/wsdjc/.svn/pristine/4d/4deed5f4a38d62f9dba7db8e010da8b49e322757.svn-base b/wsdjc/.svn/pristine/4d/4deed5f4a38d62f9dba7db8e010da8b49e322757.svn-base new file mode 100644 index 0000000..43679f2 Binary files /dev/null and b/wsdjc/.svn/pristine/4d/4deed5f4a38d62f9dba7db8e010da8b49e322757.svn-base differ diff --git a/wsdjc/.svn/pristine/51/512bd49c4ba767010f32a54ef22de71e83bd7e1e.svn-base b/wsdjc/.svn/pristine/51/512bd49c4ba767010f32a54ef22de71e83bd7e1e.svn-base new file mode 100644 index 0000000..0c68a61 --- /dev/null +++ b/wsdjc/.svn/pristine/51/512bd49c4ba767010f32a54ef22de71e83bd7e1e.svn-base @@ -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/wsdjc/.svn/pristine/54/54b731178d81e66eca9623df772ff32718208137.svn-base b/wsdjc/.svn/pristine/54/54b731178d81e66eca9623df772ff32718208137.svn-base new file mode 100644 index 0000000..a388feb Binary files /dev/null and b/wsdjc/.svn/pristine/54/54b731178d81e66eca9623df772ff32718208137.svn-base differ diff --git a/wsdjc/.svn/pristine/58/580ffc27672173b28016ba698a1fe70ef8e3960a.svn-base b/wsdjc/.svn/pristine/58/580ffc27672173b28016ba698a1fe70ef8e3960a.svn-base new file mode 100644 index 0000000..e4ad1b2 --- /dev/null +++ b/wsdjc/.svn/pristine/58/580ffc27672173b28016ba698a1fe70ef8e3960a.svn-base @@ -0,0 +1,140 @@ +package com.surfbird.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/wsdjc/.svn/pristine/6a/6a12628fe73b76c1dfab2cfc8d143327d336398b.svn-base b/wsdjc/.svn/pristine/6a/6a12628fe73b76c1dfab2cfc8d143327d336398b.svn-base new file mode 100644 index 0000000..a81aec1 --- /dev/null +++ b/wsdjc/.svn/pristine/6a/6a12628fe73b76c1dfab2cfc8d143327d336398b.svn-base @@ -0,0 +1,41 @@ +package com.surfbird.socket.server.service; + +import java.io.IOException; +import java.net.ServerSocket; +import java.net.Socket; +import java.util.Map; + +import com.surfbird.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/wsdjc/.svn/pristine/6a/6a4aa50e2ef6637ea3104b5e8f5be062ba68948b.svn-base b/wsdjc/.svn/pristine/6a/6a4aa50e2ef6637ea3104b5e8f5be062ba68948b.svn-base new file mode 100644 index 0000000..34ff415 --- /dev/null +++ b/wsdjc/.svn/pristine/6a/6a4aa50e2ef6637ea3104b5e8f5be062ba68948b.svn-base @@ -0,0 +1,36 @@ + + + Heat Supply Data Collection + + + socket + 20000 + + + + com.surfbird.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/wsdjc/.svn/pristine/70/702be5b99ad73ea2f7718b3d21a071765e669914.svn-base b/wsdjc/.svn/pristine/70/702be5b99ad73ea2f7718b3d21a071765e669914.svn-base new file mode 100644 index 0000000..9029a63 --- /dev/null +++ b/wsdjc/.svn/pristine/70/702be5b99ad73ea2f7718b3d21a071765e669914.svn-base @@ -0,0 +1,35 @@ + + + + Spring Configuration + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdjc/.svn/pristine/70/706b1beb361c5d4c03e682ec3b8879bc145d2bf9.svn-base b/wsdjc/.svn/pristine/70/706b1beb361c5d4c03e682ec3b8879bc145d2bf9.svn-base new file mode 100644 index 0000000..3ac44e4 --- /dev/null +++ b/wsdjc/.svn/pristine/70/706b1beb361c5d4c03e682ec3b8879bc145d2bf9.svn-base @@ -0,0 +1,49 @@ +package com.surfbird.common.service; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + +import com.surfbird.common.dao.SurfbirdDao; + +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/wsdjc/.svn/pristine/70/709ccf19c96800d00911630479e00f6a0e08547f.svn-base b/wsdjc/.svn/pristine/70/709ccf19c96800d00911630479e00f6a0e08547f.svn-base new file mode 100644 index 0000000..a940c10 --- /dev/null +++ b/wsdjc/.svn/pristine/70/709ccf19c96800d00911630479e00f6a0e08547f.svn-base @@ -0,0 +1,119 @@ +package com.surfbird.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.surfbird.business.bean.HeatAnalyze; +import com.surfbird.business.bean.Instrucation; +import com.surfbird.business.service.HeatAnalyzeService; +import com.surfbird.business.service.HeatCollectService; +import com.surfbird.business.service.InstrucationService; +import com.surfbird.socket.server.service.MultiSocket; +import com.surfbird.util.convert.DataHandle; +import com.surfbird.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/wsdjc/.svn/pristine/71/71277b3c374fbeab94281563ac92fdd801963394.svn-base b/wsdjc/.svn/pristine/71/71277b3c374fbeab94281563ac92fdd801963394.svn-base new file mode 100644 index 0000000..5d2b913 --- /dev/null +++ b/wsdjc/.svn/pristine/71/71277b3c374fbeab94281563ac92fdd801963394.svn-base @@ -0,0 +1,24 @@ +package com.surfbird.util; + +import java.util.HashMap; +import java.util.Map; + +import com.surfbird.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/wsdjc/.svn/pristine/74/74aca283cd4f4b4f3e425f5820cda58f44409547.svn-base b/wsdjc/.svn/pristine/74/74aca283cd4f4b4f3e425f5820cda58f44409547.svn-base new file mode 100644 index 0000000..0fd275e Binary files /dev/null and b/wsdjc/.svn/pristine/74/74aca283cd4f4b4f3e425f5820cda58f44409547.svn-base differ diff --git a/wsdjc/.svn/pristine/75/751c871527ec7ff335ffc76f2e737e297c0a8d30.svn-base b/wsdjc/.svn/pristine/75/751c871527ec7ff335ffc76f2e737e297c0a8d30.svn-base new file mode 100644 index 0000000..591ef56 Binary files /dev/null and b/wsdjc/.svn/pristine/75/751c871527ec7ff335ffc76f2e737e297c0a8d30.svn-base differ diff --git a/wsdjc/.svn/pristine/77/7745ac7fde46f5975b61f21006a56b2e10f61ba2.svn-base b/wsdjc/.svn/pristine/77/7745ac7fde46f5975b61f21006a56b2e10f61ba2.svn-base new file mode 100644 index 0000000..37031bc --- /dev/null +++ b/wsdjc/.svn/pristine/77/7745ac7fde46f5975b61f21006a56b2e10f61ba2.svn-base @@ -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/wsdjc/.svn/pristine/7f/7ffdb02f95af1c1a208544e076cea5b8e66e731a.svn-base b/wsdjc/.svn/pristine/7f/7ffdb02f95af1c1a208544e076cea5b8e66e731a.svn-base new file mode 100644 index 0000000..5b64b7d Binary files /dev/null and b/wsdjc/.svn/pristine/7f/7ffdb02f95af1c1a208544e076cea5b8e66e731a.svn-base differ diff --git a/wsdjc/.svn/pristine/84/84cc45e666dd33734b15f779bf3977eea56645ad.svn-base b/wsdjc/.svn/pristine/84/84cc45e666dd33734b15f779bf3977eea56645ad.svn-base new file mode 100644 index 0000000..8bf75f8 --- /dev/null +++ b/wsdjc/.svn/pristine/84/84cc45e666dd33734b15f779bf3977eea56645ad.svn-base @@ -0,0 +1,148 @@ +package com.surfbird.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/wsdjc/.svn/pristine/86/861d784eee57043e922c17e964b359379c916714.svn-base b/wsdjc/.svn/pristine/86/861d784eee57043e922c17e964b359379c916714.svn-base new file mode 100644 index 0000000..7680ced --- /dev/null +++ b/wsdjc/.svn/pristine/86/861d784eee57043e922c17e964b359379c916714.svn-base @@ -0,0 +1,49 @@ +package com.surfbird.common.service; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + +import com.surfbird.common.dao.SurfbirdDao; + +public class SurfbirdService, 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/wsdjc/.svn/pristine/87/87ab9531e1222351568346cf9057a0cae36112b8.svn-base b/wsdjc/.svn/pristine/87/87ab9531e1222351568346cf9057a0cae36112b8.svn-base new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/wsdjc/.svn/pristine/87/87ab9531e1222351568346cf9057a0cae36112b8.svn-base @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/wsdjc/.svn/pristine/8c/8cc21244c4cf7bba28026870d8993b5185b3b95f.svn-base b/wsdjc/.svn/pristine/8c/8cc21244c4cf7bba28026870d8993b5185b3b95f.svn-base new file mode 100644 index 0000000..96c998c --- /dev/null +++ b/wsdjc/.svn/pristine/8c/8cc21244c4cf7bba28026870d8993b5185b3b95f.svn-base @@ -0,0 +1,21 @@ +package com.surfbird.socket.server.listener; + +import javax.servlet.ServletContext; +import javax.servlet.ServletContextEvent; +import javax.servlet.ServletContextListener; + +import com.surfbird.socket.server.service.SocketServer; + +public class SocketListener implements ServletContextListener{ + + @Override + public void contextDestroyed(ServletContextEvent event) {} + + @Override + public void contextInitialized(ServletContextEvent event) { + 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/wsdjc/.svn/pristine/94/941e0ec8d0b965dd9d5de72c66e44cc0e6ddb2a3.svn-base b/wsdjc/.svn/pristine/94/941e0ec8d0b965dd9d5de72c66e44cc0e6ddb2a3.svn-base new file mode 100644 index 0000000..c4292f0 --- /dev/null +++ b/wsdjc/.svn/pristine/94/941e0ec8d0b965dd9d5de72c66e44cc0e6ddb2a3.svn-base @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/wsdjc/.svn/pristine/98/98d5900cb0a55d55a8f3ab3be1a8391150037903.svn-base b/wsdjc/.svn/pristine/98/98d5900cb0a55d55a8f3ab3be1a8391150037903.svn-base new file mode 100644 index 0000000..2a386d4 Binary files /dev/null and b/wsdjc/.svn/pristine/98/98d5900cb0a55d55a8f3ab3be1a8391150037903.svn-base differ diff --git a/wsdjc/.svn/pristine/9b/9b1777089fbc51b6d5bb7175002e55ec262c1eef.svn-base b/wsdjc/.svn/pristine/9b/9b1777089fbc51b6d5bb7175002e55ec262c1eef.svn-base new file mode 100644 index 0000000..5c4423d --- /dev/null +++ b/wsdjc/.svn/pristine/9b/9b1777089fbc51b6d5bb7175002e55ec262c1eef.svn-base @@ -0,0 +1,11 @@ + + + + + + + DELETE FROM T_T_O_DEVICEDATA WHERE NAME = #{sim} + + \ No newline at end of file diff --git a/wsdjc/.svn/pristine/9c/9c78c6b9a6c603f6589b480e165939cde7bab7f9.svn-base b/wsdjc/.svn/pristine/9c/9c78c6b9a6c603f6589b480e165939cde7bab7f9.svn-base new file mode 100644 index 0000000..df4f8f6 Binary files /dev/null and b/wsdjc/.svn/pristine/9c/9c78c6b9a6c603f6589b480e165939cde7bab7f9.svn-base differ diff --git a/wsdjc/.svn/pristine/a1/a17e8a4d9a1f7fcc5eed606721c9ed6b7f18acf7.svn-base b/wsdjc/.svn/pristine/a1/a17e8a4d9a1f7fcc5eed606721c9ed6b7f18acf7.svn-base new file mode 100644 index 0000000..bc528ac Binary files /dev/null and b/wsdjc/.svn/pristine/a1/a17e8a4d9a1f7fcc5eed606721c9ed6b7f18acf7.svn-base differ diff --git a/wsdjc/.svn/pristine/a4/a48e09231034cb78924e67aeffe87a41e0616239.svn-base b/wsdjc/.svn/pristine/a4/a48e09231034cb78924e67aeffe87a41e0616239.svn-base new file mode 100644 index 0000000..9d0edc2 Binary files /dev/null and b/wsdjc/.svn/pristine/a4/a48e09231034cb78924e67aeffe87a41e0616239.svn-base differ diff --git a/wsdjc/.svn/pristine/a6/a665c1c6b3aa34c1692f915b397a456e57c8f13c.svn-base b/wsdjc/.svn/pristine/a6/a665c1c6b3aa34c1692f915b397a456e57c8f13c.svn-base new file mode 100644 index 0000000..b008248 --- /dev/null +++ b/wsdjc/.svn/pristine/a6/a665c1c6b3aa34c1692f915b397a456e57c8f13c.svn-base @@ -0,0 +1,118 @@ +package com.surfbird.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/wsdjc/.svn/pristine/ab/ab48c7a62f1841a844f170eb725bac062ccf1982.svn-base b/wsdjc/.svn/pristine/ab/ab48c7a62f1841a844f170eb725bac062ccf1982.svn-base new file mode 100644 index 0000000..b8348d5 --- /dev/null +++ b/wsdjc/.svn/pristine/ab/ab48c7a62f1841a844f170eb725bac062ccf1982.svn-base @@ -0,0 +1,249 @@ +package com.surfbird.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.surfbird.business.bean.HeatAnalyze; +import com.surfbird.business.bean.Instrucation; +import com.surfbird.common.util.JdbcInstance; +import com.surfbird.socket.server.bean.Client; +import com.surfbird.util.CRC16Util; +import com.surfbird.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(); + } + + /** + * 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(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) { + DataHandle.toHandleData4202(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 {//쳣ݴ. + 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())); + 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.surfbird.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); + 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)); + } catch (Exception e) { + e.printStackTrace(); + } + } + + /** + * ¼ݲɼ־. + * @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.surfbird.business.dao.InstrucationDao.save", insObject); + } catch (Exception e) { + e.printStackTrace(); + } + } +} diff --git a/wsdjc/.svn/pristine/af/afd3f7ecb9d7c2cb3160563f9f64b72223bb0265.svn-base b/wsdjc/.svn/pristine/af/afd3f7ecb9d7c2cb3160563f9f64b72223bb0265.svn-base new file mode 100644 index 0000000..7ad2804 Binary files /dev/null and b/wsdjc/.svn/pristine/af/afd3f7ecb9d7c2cb3160563f9f64b72223bb0265.svn-base differ diff --git a/wsdjc/.svn/pristine/b4/b4904d329f31dd0d729d3a6ccc00a41be41768b7.svn-base b/wsdjc/.svn/pristine/b4/b4904d329f31dd0d729d3a6ccc00a41be41768b7.svn-base new file mode 100644 index 0000000..ed40890 --- /dev/null +++ b/wsdjc/.svn/pristine/b4/b4904d329f31dd0d729d3a6ccc00a41be41768b7.svn-base @@ -0,0 +1,94 @@ +package com.surfbird.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.surfbird.socket.server.bean.Client; +import com.surfbird.util.convert.DataHandle; +import com.surfbird.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/wsdjc/.svn/pristine/bb/bb473a49f81e05adfede81de004e5fe6d45ec3f7.svn-base b/wsdjc/.svn/pristine/bb/bb473a49f81e05adfede81de004e5fe6d45ec3f7.svn-base new file mode 100644 index 0000000..4932cfa --- /dev/null +++ b/wsdjc/.svn/pristine/bb/bb473a49f81e05adfede81de004e5fe6d45ec3f7.svn-base @@ -0,0 +1,8 @@ +package com.surfbird.business.dao; + +import com.surfbird.business.bean.Instrucation; +import com.surfbird.common.annotation.MyBatis; +import com.surfbird.common.dao.SurfbirdDao; + +@MyBatis +public interface InstrucationDao extends SurfbirdDao {} diff --git a/wsdjc/.svn/pristine/c1/c1196cb3e56da83e3c3a02ef323699f4b05feedc.svn-base b/wsdjc/.svn/pristine/c1/c1196cb3e56da83e3c3a02ef323699f4b05feedc.svn-base new file mode 100644 index 0000000..cb4d504 Binary files /dev/null and b/wsdjc/.svn/pristine/c1/c1196cb3e56da83e3c3a02ef323699f4b05feedc.svn-base differ diff --git a/wsdjc/.svn/pristine/ca/ca01fb473f53dd0ee3c85663b26d5dc325602057.svn-base b/wsdjc/.svn/pristine/ca/ca01fb473f53dd0ee3c85663b26d5dc325602057.svn-base new file mode 100644 index 0000000..b569831 Binary files /dev/null and b/wsdjc/.svn/pristine/ca/ca01fb473f53dd0ee3c85663b26d5dc325602057.svn-base differ diff --git a/wsdjc/.svn/pristine/ca/ca83aa9a585691b04ce3bef79b3f050e2cc6fec8.svn-base b/wsdjc/.svn/pristine/ca/ca83aa9a585691b04ce3bef79b3f050e2cc6fec8.svn-base new file mode 100644 index 0000000..ebfe068 Binary files /dev/null and b/wsdjc/.svn/pristine/ca/ca83aa9a585691b04ce3bef79b3f050e2cc6fec8.svn-base differ diff --git a/wsdjc/.svn/pristine/d0/d08cb4eaf655d013c1fbc1dc02ba72e1f7ce7a63.svn-base b/wsdjc/.svn/pristine/d0/d08cb4eaf655d013c1fbc1dc02ba72e1f7ce7a63.svn-base new file mode 100644 index 0000000..58bcae7 --- /dev/null +++ b/wsdjc/.svn/pristine/d0/d08cb4eaf655d013c1fbc1dc02ba72e1f7ce7a63.svn-base @@ -0,0 +1,10 @@ +package com.surfbird.business.service; + +import org.springframework.stereotype.Service; + +import com.surfbird.business.bean.HeatAnalyze; +import com.surfbird.business.dao.HeatAnalyzeDao; +import com.surfbird.common.service.SurfbirdService; + +@Service +public class HeatAnalyzeService extends SurfbirdService {} diff --git a/wsdjc/.svn/pristine/d6/d6005e13e5a0aac911eeae7ee9bedf140dcd534f.svn-base b/wsdjc/.svn/pristine/d6/d6005e13e5a0aac911eeae7ee9bedf140dcd534f.svn-base new file mode 100644 index 0000000..a36c765 --- /dev/null +++ b/wsdjc/.svn/pristine/d6/d6005e13e5a0aac911eeae7ee9bedf140dcd534f.svn-base @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/wsdjc/.svn/pristine/da/dacf81c825677d1af17a286edee1a987cd9be495.svn-base b/wsdjc/.svn/pristine/da/dacf81c825677d1af17a286edee1a987cd9be495.svn-base new file mode 100644 index 0000000..dfdea3a --- /dev/null +++ b/wsdjc/.svn/pristine/da/dacf81c825677d1af17a286edee1a987cd9be495.svn-base @@ -0,0 +1,41 @@ +package com.surfbird.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/wsdjc/.svn/pristine/dc/dcb468041ec6d529ca8055d8ada5e0b75c28e99c.svn-base b/wsdjc/.svn/pristine/dc/dcb468041ec6d529ca8055d8ada5e0b75c28e99c.svn-base new file mode 100644 index 0000000..285957e --- /dev/null +++ b/wsdjc/.svn/pristine/dc/dcb468041ec6d529ca8055d8ada5e0b75c28e99c.svn-base @@ -0,0 +1,19 @@ +package com.surfbird.common.dao; + +import java.util.List; + +public interface SurfbirdDao { + 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/wsdjc/.svn/pristine/e4/e450fb297d927314365a36fa4ff7b451d3aeff5b.svn-base b/wsdjc/.svn/pristine/e4/e450fb297d927314365a36fa4ff7b451d3aeff5b.svn-base new file mode 100644 index 0000000..c5a401c --- /dev/null +++ b/wsdjc/.svn/pristine/e4/e450fb297d927314365a36fa4ff7b451d3aeff5b.svn-base @@ -0,0 +1,14 @@ +package com.surfbird.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/wsdjc/.svn/pristine/e8/e8ee4902d9d8bfbb21bc5e8f30cfbb4324adb4f3.svn-base b/wsdjc/.svn/pristine/e8/e8ee4902d9d8bfbb21bc5e8f30cfbb4324adb4f3.svn-base new file mode 100644 index 0000000..4c8284d Binary files /dev/null and b/wsdjc/.svn/pristine/e8/e8ee4902d9d8bfbb21bc5e8f30cfbb4324adb4f3.svn-base differ diff --git a/wsdjc/.svn/pristine/e9/e9856d0dd103d59a7ca563d919d983470d81e004.svn-base b/wsdjc/.svn/pristine/e9/e9856d0dd103d59a7ca563d919d983470d81e004.svn-base new file mode 100644 index 0000000..254272e --- /dev/null +++ b/wsdjc/.svn/pristine/e9/e9856d0dd103d59a7ca563d919d983470d81e004.svn-base @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/wsdjc/.svn/pristine/ec/ec2410fdf7e0a3022e7c2a2e6241039d1abc1e98.svn-base b/wsdjc/.svn/pristine/ec/ec2410fdf7e0a3022e7c2a2e6241039d1abc1e98.svn-base new file mode 100644 index 0000000..f726e13 Binary files /dev/null and b/wsdjc/.svn/pristine/ec/ec2410fdf7e0a3022e7c2a2e6241039d1abc1e98.svn-base differ diff --git a/wsdjc/.svn/pristine/ed/ed79c45cd47db6213dcf1287ba09b4592fe603f5.svn-base b/wsdjc/.svn/pristine/ed/ed79c45cd47db6213dcf1287ba09b4592fe603f5.svn-base new file mode 100644 index 0000000..d4f61fd --- /dev/null +++ b/wsdjc/.svn/pristine/ed/ed79c45cd47db6213dcf1287ba09b4592fe603f5.svn-base @@ -0,0 +1,43 @@ +package com.surfbird.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") + "surfbird"; + 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/wsdjc/.svn/pristine/f9/f93efa88e756a96a409e8011d5501683aa9f460c.svn-base b/wsdjc/.svn/pristine/f9/f93efa88e756a96a409e8011d5501683aa9f460c.svn-base new file mode 100644 index 0000000..d78d8a7 --- /dev/null +++ b/wsdjc/.svn/pristine/f9/f93efa88e756a96a409e8011d5501683aa9f460c.svn-base @@ -0,0 +1,28 @@ +package com.surfbird.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.surfbird.common.service.SqlServerService; +import com.surfbird.common.service.SurfbirdService; +import com.surfbird.util.Global; +import com.surfbird.util.MultipleDataSource; + +@Aspect +@Component +public class MultipleDataSourceAspectAdvice { + //@Around("execution(* com.surfbird..*.*(..))") + @Around("execution(* com.surfbird..*Service.*(..))") + public Object doAround(ProceedingJoinPoint jp) throws Throwable { + if (jp.getTarget() instanceof SurfbirdService) { + 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/wsdjc/.svn/pristine/fa/fa44b5db6a83c0886372decee87dee0dbfc5f635.svn-base b/wsdjc/.svn/pristine/fa/fa44b5db6a83c0886372decee87dee0dbfc5f635.svn-base new file mode 100644 index 0000000..439ceb8 --- /dev/null +++ b/wsdjc/.svn/pristine/fa/fa44b5db6a83c0886372decee87dee0dbfc5f635.svn-base @@ -0,0 +1,87 @@ + + + + MyBatis Data Source Configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdjc/.svn/pristine/fd/fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef.svn-base b/wsdjc/.svn/pristine/fd/fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef.svn-base new file mode 100644 index 0000000..f7c3057 Binary files /dev/null and b/wsdjc/.svn/pristine/fd/fdd0b6aa3c9c7a188c3bfbf6dfd8d40e843be9ef.svn-base differ diff --git a/wsdjc/.svn/wc.db b/wsdjc/.svn/wc.db new file mode 100644 index 0000000..2307f56 Binary files /dev/null and b/wsdjc/.svn/wc.db differ diff --git a/wsdjc/RemoteSystemsTempFiles/.project b/wsdjc/RemoteSystemsTempFiles/.project new file mode 100644 index 0000000..5447a64 --- /dev/null +++ b/wsdjc/RemoteSystemsTempFiles/.project @@ -0,0 +1,12 @@ + + + RemoteSystemsTempFiles + + + + + + + org.eclipse.rse.ui.remoteSystemsTempNature + + diff --git a/wsdjc/WebContent/META-INF/MANIFEST.MF b/wsdjc/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..254272e --- /dev/null +++ b/wsdjc/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/wsdjc/WebContent/WEB-INF/classes/application.xml b/wsdjc/WebContent/WEB-INF/classes/application.xml new file mode 100644 index 0000000..9029a63 --- /dev/null +++ b/wsdjc/WebContent/WEB-INF/classes/application.xml @@ -0,0 +1,35 @@ + + + + Spring Configuration + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/bean/HeatAnalyze.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/bean/HeatAnalyze.class new file mode 100644 index 0000000..1eac279 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/bean/HeatAnalyze.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/bean/Instrucation.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/bean/Instrucation.class new file mode 100644 index 0000000..6eeea5c Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/bean/Instrucation.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/bean/Temperature.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/bean/Temperature.class new file mode 100644 index 0000000..0bcaeeb Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/bean/Temperature.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/HeatAnalyzeDao.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/HeatAnalyzeDao.class new file mode 100644 index 0000000..c90aa27 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/HeatAnalyzeDao.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/HeatCollectDao.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/HeatCollectDao.class new file mode 100644 index 0000000..294bfa9 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/HeatCollectDao.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/InstrucationDao.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/InstrucationDao.class new file mode 100644 index 0000000..bfce544 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/InstrucationDao.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/TemperatureDao.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/TemperatureDao.class new file mode 100644 index 0000000..49ca508 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/dao/TemperatureDao.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/HeatAnalyzeService.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/HeatAnalyzeService.class new file mode 100644 index 0000000..d91510a Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/HeatAnalyzeService.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/HeatCollectService.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/HeatCollectService.class new file mode 100644 index 0000000..842b8c9 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/HeatCollectService.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/InstrucationService.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/InstrucationService.class new file mode 100644 index 0000000..9e6c5e5 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/InstrucationService.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/TemperatureService.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/TemperatureService.class new file mode 100644 index 0000000..4dce25d Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/business/service/TemperatureService.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/annotation/MultipleDataSourceAspectAdvice.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/annotation/MultipleDataSourceAspectAdvice.class new file mode 100644 index 0000000..566b6eb Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/annotation/MultipleDataSourceAspectAdvice.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/annotation/MyBatis.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/annotation/MyBatis.class new file mode 100644 index 0000000..c1d685f Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/annotation/MyBatis.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/dao/SurfbirdDao.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/dao/SurfbirdDao.class new file mode 100644 index 0000000..18d21c6 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/dao/SurfbirdDao.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/service/SqlServerService.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/service/SqlServerService.class new file mode 100644 index 0000000..bc63993 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/service/SqlServerService.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/service/SurfbirdService.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/service/SurfbirdService.class new file mode 100644 index 0000000..52b464d Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/service/SurfbirdService.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/util/JdbcInstance.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/util/JdbcInstance.class new file mode 100644 index 0000000..6bff716 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/common/util/JdbcInstance.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/heatAnalyze.xml b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/heatAnalyze.xml new file mode 100644 index 0000000..19ae60e --- /dev/null +++ b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/heatAnalyze.xml @@ -0,0 +1,19 @@ + + + + + CALL P_Q_D_HEATANALYSIS(#{code}, #{sim}, #{datatime}, #{view005}, #{view006}, #{view007}, #{view008}, #{view009}, #{view010}, #{view011}, #{view012}) + + + + + + + + + + \ No newline at end of file diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/heatCollect.xml b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/heatCollect.xml new file mode 100644 index 0000000..5c4423d --- /dev/null +++ b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/heatCollect.xml @@ -0,0 +1,11 @@ + + + + + + + DELETE FROM T_T_O_DEVICEDATA WHERE NAME = #{sim} + + \ No newline at end of file diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/instrucation.xml b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/instrucation.xml new file mode 100644 index 0000000..c276b7c --- /dev/null +++ b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/instrucation.xml @@ -0,0 +1,7 @@ + + + + + INSERT INTO TQL_DATACOLLECT(CONTENT, INSTRUCATION) VALUES(#{content}, #{instrucation}) + + \ No newline at end of file diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/temperature.xml b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/temperature.xml new file mode 100644 index 0000000..a59ec07 --- /dev/null +++ b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/mapper/temperature.xml @@ -0,0 +1,38 @@ + + + + + insert into ${tableName} + ( + code, + up_peri, + csq, + bat, + err_net, + err_temp, + off_line, + err_move, + reserved, + room_temp, + humidity, + report_time, + create_time + ) + values( + #{code}, + #{upPeri}, + #{csq}, + #{bat}, + #{errNet}, + #{errTemp}, + #{offLine}, + #{errMove}, + #{reserved}, + #{roomTemp}, + #{humidity}, + #{reportTime}, + #{createTime} + ) + + + \ No newline at end of file diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/listener/UdpListener.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/listener/UdpListener.class new file mode 100644 index 0000000..10950a4 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/listener/UdpListener.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/LogicThread.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/LogicThread.class new file mode 100644 index 0000000..4e21651 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/LogicThread.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/MulUDPServer.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/MulUDPServer.class new file mode 100644 index 0000000..397b18f Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/MulUDPServer.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/SimpleUDPClient.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/SimpleUDPClient.class new file mode 100644 index 0000000..9fb23fa Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/SimpleUDPClient.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/UdpServer.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/UdpServer.class new file mode 100644 index 0000000..c071b0b Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/socket/server/service/UdpServer.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/CRC16Util.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/CRC16Util.class new file mode 100644 index 0000000..9fef478 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/CRC16Util.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/DataCollect.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/DataCollect.class new file mode 100644 index 0000000..d9ed48f Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/DataCollect.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/Global.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/Global.class new file mode 100644 index 0000000..c5be5a5 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/Global.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/MultipleDataSource.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/MultipleDataSource.class new file mode 100644 index 0000000..cda4436 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/MultipleDataSource.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/convert/DataFormula.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/convert/DataFormula.class new file mode 100644 index 0000000..936bd84 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/convert/DataFormula.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/convert/DataHandle.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/convert/DataHandle.class new file mode 100644 index 0000000..07cadbb Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/convert/DataHandle.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/convert/Recordable.class b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/convert/Recordable.class new file mode 100644 index 0000000..9607ea8 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/classes/com/surfbird/util/convert/Recordable.class differ diff --git a/wsdjc/WebContent/WEB-INF/classes/config.xml b/wsdjc/WebContent/WEB-INF/classes/config.xml new file mode 100644 index 0000000..337e48e --- /dev/null +++ b/wsdjc/WebContent/WEB-INF/classes/config.xml @@ -0,0 +1,87 @@ + + + + MyBatis Data Source Configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdjc/WebContent/WEB-INF/lib/aspectjweaver-1.9.1.jar b/wsdjc/WebContent/WEB-INF/lib/aspectjweaver-1.9.1.jar new file mode 100644 index 0000000..bf0e856 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/aspectjweaver-1.9.1.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/commons-dbcp-1.4.jar b/wsdjc/WebContent/WEB-INF/lib/commons-dbcp-1.4.jar new file mode 100644 index 0000000..c4c1c4f Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/commons-dbcp-1.4.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar b/wsdjc/WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar new file mode 100644 index 0000000..131f192 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/commons-fileupload-1.2.2.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/commons-io-2.0.1.jar b/wsdjc/WebContent/WEB-INF/lib/commons-io-2.0.1.jar new file mode 100644 index 0000000..5b64b7d Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/commons-io-2.0.1.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/commons-lang-2.6.jar b/wsdjc/WebContent/WEB-INF/lib/commons-lang-2.6.jar new file mode 100644 index 0000000..98467d3 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/commons-lang-2.6.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar b/wsdjc/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar new file mode 100644 index 0000000..8758a96 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/commons-logging-1.1.1.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/commons-pool-1.5.6.jar b/wsdjc/WebContent/WEB-INF/lib/commons-pool-1.5.6.jar new file mode 100644 index 0000000..ce5ff60 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/commons-pool-1.5.6.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/jstl-1.2.jar b/wsdjc/WebContent/WEB-INF/lib/jstl-1.2.jar new file mode 100644 index 0000000..0fd275e Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/jstl-1.2.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/jtds-1.3.1.jar b/wsdjc/WebContent/WEB-INF/lib/jtds-1.3.1.jar new file mode 100644 index 0000000..d866860 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/jtds-1.3.1.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/mail.jar b/wsdjc/WebContent/WEB-INF/lib/mail.jar new file mode 100644 index 0000000..f726e13 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/mail.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/mybatis-3.1.0-SNAPSHOT.jar b/wsdjc/WebContent/WEB-INF/lib/mybatis-3.1.0-SNAPSHOT.jar new file mode 100644 index 0000000..9d0edc2 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/mybatis-3.1.0-SNAPSHOT.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/mybatis-spring-1.1.0-SNAPSHOT.jar b/wsdjc/WebContent/WEB-INF/lib/mybatis-spring-1.1.0-SNAPSHOT.jar new file mode 100644 index 0000000..2a386d4 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/mybatis-spring-1.1.0-SNAPSHOT.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/mysql-connector-j-8.4.0.jar b/wsdjc/WebContent/WEB-INF/lib/mysql-connector-j-8.4.0.jar new file mode 100644 index 0000000..8294fe0 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/mysql-connector-j-8.4.0.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-aop-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-aop-5.0.7.RELEASE.jar new file mode 100644 index 0000000..f7c3057 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-aop-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-aspects-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-aspects-5.0.7.RELEASE.jar new file mode 100644 index 0000000..7ad2804 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-aspects-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-beans-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-beans-5.0.7.RELEASE.jar new file mode 100644 index 0000000..cb4d504 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-beans-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-context-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-context-5.0.7.RELEASE.jar new file mode 100644 index 0000000..2296e5e Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-context-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-context-support-5.0.7.RELEASE.jar b/wsdjc/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/wsdjc/WebContent/WEB-INF/lib/spring-context-support-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-core-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-core-5.0.7.RELEASE.jar new file mode 100644 index 0000000..a388feb Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-core-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-expression-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-expression-5.0.7.RELEASE.jar new file mode 100644 index 0000000..b569831 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-expression-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-jdbc-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-jdbc-5.0.7.RELEASE.jar new file mode 100644 index 0000000..df4f8f6 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-jdbc-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-orm-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-orm-5.0.7.RELEASE.jar new file mode 100644 index 0000000..43679f2 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-orm-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-tx-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-tx-5.0.7.RELEASE.jar new file mode 100644 index 0000000..2daca86 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-tx-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-web-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-web-5.0.7.RELEASE.jar new file mode 100644 index 0000000..4e96d8f Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-web-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/spring-webmvc-5.0.7.RELEASE.jar b/wsdjc/WebContent/WEB-INF/lib/spring-webmvc-5.0.7.RELEASE.jar new file mode 100644 index 0000000..591ef56 Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/spring-webmvc-5.0.7.RELEASE.jar differ diff --git a/wsdjc/WebContent/WEB-INF/lib/standard-1.1.2.jar b/wsdjc/WebContent/WEB-INF/lib/standard-1.1.2.jar new file mode 100644 index 0000000..bc528ac Binary files /dev/null and b/wsdjc/WebContent/WEB-INF/lib/standard-1.1.2.jar differ diff --git a/wsdjc/WebContent/WEB-INF/plugin/DATABASE.SQL b/wsdjc/WebContent/WEB-INF/plugin/DATABASE.SQL new file mode 100644 index 0000000..2bf344b --- /dev/null +++ b/wsdjc/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/wsdjc/WebContent/WEB-INF/web.xml b/wsdjc/WebContent/WEB-INF/web.xml new file mode 100644 index 0000000..d64e20e --- /dev/null +++ b/wsdjc/WebContent/WEB-INF/web.xml @@ -0,0 +1,31 @@ + + + Temperature and humidity monitoring + + + com.surfbird.socket.server.listener.UdpListener + + + + 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/wsdjc/src/application.xml b/wsdjc/src/application.xml new file mode 100644 index 0000000..9029a63 --- /dev/null +++ b/wsdjc/src/application.xml @@ -0,0 +1,35 @@ + + + + Spring Configuration + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wsdjc/src/com/surfbird/business/bean/HeatAnalyze.java b/wsdjc/src/com/surfbird/business/bean/HeatAnalyze.java new file mode 100644 index 0000000..b008248 --- /dev/null +++ b/wsdjc/src/com/surfbird/business/bean/HeatAnalyze.java @@ -0,0 +1,118 @@ +package com.surfbird.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/wsdjc/src/com/surfbird/business/bean/Instrucation.java b/wsdjc/src/com/surfbird/business/bean/Instrucation.java new file mode 100644 index 0000000..e345533 --- /dev/null +++ b/wsdjc/src/com/surfbird/business/bean/Instrucation.java @@ -0,0 +1,21 @@ +package com.surfbird.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/wsdjc/src/com/surfbird/business/bean/Temperature.java b/wsdjc/src/com/surfbird/business/bean/Temperature.java new file mode 100644 index 0000000..3c5db4f --- /dev/null +++ b/wsdjc/src/com/surfbird/business/bean/Temperature.java @@ -0,0 +1,108 @@ +package com.surfbird.business.bean; + +import java.util.Date; + +public class Temperature { + + private String code; + private String upPeri; + private String csq; + private String bat; + private String errNet; + private String errTemp; + private String offLine; + private String errMove; + private String reserved; + private String roomTemp; + private String humidity; + private String reportTime; + private Date createTime; + private String tableName; + + public String getCode() { + return code; + } + public void setCode(String code) { + this.code = code; + } + public String getUpPeri() { + return upPeri; + } + public void setUpPeri(String upPeri) { + this.upPeri = upPeri; + } + public String getCsq() { + return csq; + } + public void setCsq(String csq) { + this.csq = csq; + } + public String getBat() { + return bat; + } + public void setBat(String bat) { + this.bat = bat; + } + public String getErrNet() { + return errNet; + } + public void setErrNet(String errNet) { + this.errNet = errNet; + } + public String getErrTemp() { + return errTemp; + } + public void setErrTemp(String errTemp) { + this.errTemp = errTemp; + } + public String getOffLine() { + return offLine; + } + public void setOffLine(String offLine) { + this.offLine = offLine; + } + public String getErrMove() { + return errMove; + } + public void setErrMove(String errMove) { + this.errMove = errMove; + } + public String getReserved() { + return reserved; + } + public void setReserved(String reserved) { + this.reserved = reserved; + } + public String getRoomTemp() { + return roomTemp; + } + public void setRoomTemp(String roomTemp) { + this.roomTemp = roomTemp; + } + public String getHumidity() { + return humidity; + } + public void setHumidity(String humidity) { + this.humidity = humidity; + } + public String getReportTime() { + return reportTime; + } + public void setReportTime(String reportTime) { + this.reportTime = reportTime; + } + public Date getCreateTime() { + return createTime; + } + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + public String getTableName() { + return tableName; + } + public void setTableName(String tableName) { + this.tableName = tableName; + } + + +} diff --git a/wsdjc/src/com/surfbird/business/dao/HeatAnalyzeDao.java b/wsdjc/src/com/surfbird/business/dao/HeatAnalyzeDao.java new file mode 100644 index 0000000..eeb549d --- /dev/null +++ b/wsdjc/src/com/surfbird/business/dao/HeatAnalyzeDao.java @@ -0,0 +1,8 @@ +package com.surfbird.business.dao; + +import com.surfbird.business.bean.HeatAnalyze; +import com.surfbird.common.annotation.MyBatis; +import com.surfbird.common.dao.SurfbirdDao; + +@MyBatis +public interface HeatAnalyzeDao extends SurfbirdDao {} diff --git a/wsdjc/src/com/surfbird/business/dao/HeatCollectDao.java b/wsdjc/src/com/surfbird/business/dao/HeatCollectDao.java new file mode 100644 index 0000000..706f01c --- /dev/null +++ b/wsdjc/src/com/surfbird/business/dao/HeatCollectDao.java @@ -0,0 +1,8 @@ +package com.surfbird.business.dao; + +import com.surfbird.business.bean.HeatAnalyze; +import com.surfbird.common.annotation.MyBatis; +import com.surfbird.common.dao.SurfbirdDao; + +@MyBatis +public interface HeatCollectDao extends SurfbirdDao {} diff --git a/wsdjc/src/com/surfbird/business/dao/InstrucationDao.java b/wsdjc/src/com/surfbird/business/dao/InstrucationDao.java new file mode 100644 index 0000000..4932cfa --- /dev/null +++ b/wsdjc/src/com/surfbird/business/dao/InstrucationDao.java @@ -0,0 +1,8 @@ +package com.surfbird.business.dao; + +import com.surfbird.business.bean.Instrucation; +import com.surfbird.common.annotation.MyBatis; +import com.surfbird.common.dao.SurfbirdDao; + +@MyBatis +public interface InstrucationDao extends SurfbirdDao {} diff --git a/wsdjc/src/com/surfbird/business/dao/TemperatureDao.java b/wsdjc/src/com/surfbird/business/dao/TemperatureDao.java new file mode 100644 index 0000000..9202bd4 --- /dev/null +++ b/wsdjc/src/com/surfbird/business/dao/TemperatureDao.java @@ -0,0 +1,8 @@ +package com.surfbird.business.dao; + +import com.surfbird.business.bean.Temperature; +import com.surfbird.common.annotation.MyBatis; +import com.surfbird.common.dao.SurfbirdDao; + +@MyBatis +public interface TemperatureDao extends SurfbirdDao {} diff --git a/wsdjc/src/com/surfbird/business/service/HeatAnalyzeService.java b/wsdjc/src/com/surfbird/business/service/HeatAnalyzeService.java new file mode 100644 index 0000000..58bcae7 --- /dev/null +++ b/wsdjc/src/com/surfbird/business/service/HeatAnalyzeService.java @@ -0,0 +1,10 @@ +package com.surfbird.business.service; + +import org.springframework.stereotype.Service; + +import com.surfbird.business.bean.HeatAnalyze; +import com.surfbird.business.dao.HeatAnalyzeDao; +import com.surfbird.common.service.SurfbirdService; + +@Service +public class HeatAnalyzeService extends SurfbirdService {} diff --git a/wsdjc/src/com/surfbird/business/service/HeatCollectService.java b/wsdjc/src/com/surfbird/business/service/HeatCollectService.java new file mode 100644 index 0000000..28b893f --- /dev/null +++ b/wsdjc/src/com/surfbird/business/service/HeatCollectService.java @@ -0,0 +1,10 @@ +package com.surfbird.business.service; + +import org.springframework.stereotype.Service; + +import com.surfbird.business.bean.HeatAnalyze; +import com.surfbird.business.dao.HeatCollectDao; +import com.surfbird.common.service.SqlServerService; + +@Service +public class HeatCollectService extends SqlServerService {} diff --git a/wsdjc/src/com/surfbird/business/service/InstrucationService.java b/wsdjc/src/com/surfbird/business/service/InstrucationService.java new file mode 100644 index 0000000..7c19586 --- /dev/null +++ b/wsdjc/src/com/surfbird/business/service/InstrucationService.java @@ -0,0 +1,10 @@ +package com.surfbird.business.service; + +import org.springframework.stereotype.Service; + +import com.surfbird.business.bean.Instrucation; +import com.surfbird.business.dao.InstrucationDao; +import com.surfbird.common.service.SurfbirdService; + +@Service +public class InstrucationService extends SurfbirdService {} diff --git a/wsdjc/src/com/surfbird/business/service/TemperatureService.java b/wsdjc/src/com/surfbird/business/service/TemperatureService.java new file mode 100644 index 0000000..0696431 --- /dev/null +++ b/wsdjc/src/com/surfbird/business/service/TemperatureService.java @@ -0,0 +1,9 @@ +package com.surfbird.business.service; + +import org.springframework.stereotype.Service; +import com.surfbird.business.bean.Temperature; +import com.surfbird.business.dao.TemperatureDao; +import com.surfbird.common.service.SurfbirdService; + +@Service +public class TemperatureService extends SurfbirdService {} diff --git a/wsdjc/src/com/surfbird/common/annotation/MultipleDataSourceAspectAdvice.java b/wsdjc/src/com/surfbird/common/annotation/MultipleDataSourceAspectAdvice.java new file mode 100644 index 0000000..d78d8a7 --- /dev/null +++ b/wsdjc/src/com/surfbird/common/annotation/MultipleDataSourceAspectAdvice.java @@ -0,0 +1,28 @@ +package com.surfbird.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.surfbird.common.service.SqlServerService; +import com.surfbird.common.service.SurfbirdService; +import com.surfbird.util.Global; +import com.surfbird.util.MultipleDataSource; + +@Aspect +@Component +public class MultipleDataSourceAspectAdvice { + //@Around("execution(* com.surfbird..*.*(..))") + @Around("execution(* com.surfbird..*Service.*(..))") + public Object doAround(ProceedingJoinPoint jp) throws Throwable { + if (jp.getTarget() instanceof SurfbirdService) { + 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/wsdjc/src/com/surfbird/common/annotation/MyBatis.java b/wsdjc/src/com/surfbird/common/annotation/MyBatis.java new file mode 100644 index 0000000..b92d06e --- /dev/null +++ b/wsdjc/src/com/surfbird/common/annotation/MyBatis.java @@ -0,0 +1,17 @@ +package com.surfbird.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/wsdjc/src/com/surfbird/common/dao/SurfbirdDao.java b/wsdjc/src/com/surfbird/common/dao/SurfbirdDao.java new file mode 100644 index 0000000..285957e --- /dev/null +++ b/wsdjc/src/com/surfbird/common/dao/SurfbirdDao.java @@ -0,0 +1,19 @@ +package com.surfbird.common.dao; + +import java.util.List; + +public interface SurfbirdDao { + 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/wsdjc/src/com/surfbird/common/service/SqlServerService.java b/wsdjc/src/com/surfbird/common/service/SqlServerService.java new file mode 100644 index 0000000..3ac44e4 --- /dev/null +++ b/wsdjc/src/com/surfbird/common/service/SqlServerService.java @@ -0,0 +1,49 @@ +package com.surfbird.common.service; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + +import com.surfbird.common.dao.SurfbirdDao; + +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/wsdjc/src/com/surfbird/common/service/SurfbirdService.java b/wsdjc/src/com/surfbird/common/service/SurfbirdService.java new file mode 100644 index 0000000..7680ced --- /dev/null +++ b/wsdjc/src/com/surfbird/common/service/SurfbirdService.java @@ -0,0 +1,49 @@ +package com.surfbird.common.service; + +import java.util.List; + +import org.springframework.beans.factory.annotation.Autowired; + +import com.surfbird.common.dao.SurfbirdDao; + +public class SurfbirdService, 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/wsdjc/src/com/surfbird/common/util/JdbcInstance.java b/wsdjc/src/com/surfbird/common/util/JdbcInstance.java new file mode 100644 index 0000000..8bf75f8 --- /dev/null +++ b/wsdjc/src/com/surfbird/common/util/JdbcInstance.java @@ -0,0 +1,148 @@ +package com.surfbird.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/wsdjc/src/com/surfbird/mapper/heatAnalyze.xml b/wsdjc/src/com/surfbird/mapper/heatAnalyze.xml new file mode 100644 index 0000000..19ae60e --- /dev/null +++ b/wsdjc/src/com/surfbird/mapper/heatAnalyze.xml @@ -0,0 +1,19 @@ + + + + + CALL P_Q_D_HEATANALYSIS(#{code}, #{sim}, #{datatime}, #{view005}, #{view006}, #{view007}, #{view008}, #{view009}, #{view010}, #{view011}, #{view012}) + + + + + + + + + + \ No newline at end of file diff --git a/wsdjc/src/com/surfbird/mapper/heatCollect.xml b/wsdjc/src/com/surfbird/mapper/heatCollect.xml new file mode 100644 index 0000000..5c4423d --- /dev/null +++ b/wsdjc/src/com/surfbird/mapper/heatCollect.xml @@ -0,0 +1,11 @@ + + + + + + + DELETE FROM T_T_O_DEVICEDATA WHERE NAME = #{sim} + + \ No newline at end of file diff --git a/wsdjc/src/com/surfbird/mapper/instrucation.xml b/wsdjc/src/com/surfbird/mapper/instrucation.xml new file mode 100644 index 0000000..c276b7c --- /dev/null +++ b/wsdjc/src/com/surfbird/mapper/instrucation.xml @@ -0,0 +1,7 @@ + + + + + INSERT INTO TQL_DATACOLLECT(CONTENT, INSTRUCATION) VALUES(#{content}, #{instrucation}) + + \ No newline at end of file diff --git a/wsdjc/src/com/surfbird/mapper/temperature.xml b/wsdjc/src/com/surfbird/mapper/temperature.xml new file mode 100644 index 0000000..a59ec07 --- /dev/null +++ b/wsdjc/src/com/surfbird/mapper/temperature.xml @@ -0,0 +1,38 @@ + + + + + insert into ${tableName} + ( + code, + up_peri, + csq, + bat, + err_net, + err_temp, + off_line, + err_move, + reserved, + room_temp, + humidity, + report_time, + create_time + ) + values( + #{code}, + #{upPeri}, + #{csq}, + #{bat}, + #{errNet}, + #{errTemp}, + #{offLine}, + #{errMove}, + #{reserved}, + #{roomTemp}, + #{humidity}, + #{reportTime}, + #{createTime} + ) + + + \ No newline at end of file diff --git a/wsdjc/src/com/surfbird/socket/server/listener/UdpListener.java b/wsdjc/src/com/surfbird/socket/server/listener/UdpListener.java new file mode 100644 index 0000000..214af69 --- /dev/null +++ b/wsdjc/src/com/surfbird/socket/server/listener/UdpListener.java @@ -0,0 +1,18 @@ +package com.surfbird.socket.server.listener; + +import javax.servlet.ServletContext; +import javax.servlet.ServletContextEvent; +import javax.servlet.ServletContextListener; +import com.surfbird.socket.server.service.UdpServer; + +public class UdpListener implements ServletContextListener{ + + @Override + public void contextDestroyed(ServletContextEvent event) {} + + @Override + public void contextInitialized(ServletContextEvent event) { + UdpServer server = new UdpServer(); + new Thread(server).start(); + } +} \ No newline at end of file diff --git a/wsdjc/src/com/surfbird/socket/server/service/LogicThread.java b/wsdjc/src/com/surfbird/socket/server/service/LogicThread.java new file mode 100644 index 0000000..16b7de3 --- /dev/null +++ b/wsdjc/src/com/surfbird/socket/server/service/LogicThread.java @@ -0,0 +1,72 @@ +package com.surfbird.socket.server.service; + +import java.net.DatagramPacket; +import java.net.DatagramSocket; +import java.net.InetAddress; + +import com.surfbird.util.convert.DataHandle; + +public class LogicThread extends Thread { + + /**Ӷ*/ + DatagramSocket ds; + + /**յݰ*/ + DatagramPacket dp; + + public LogicThread(DatagramSocket ds,DatagramPacket dp){ + this.ds = ds; + this.dp = dp; + start(); //߳ + + } + + public void run(){ + try{ + //û + byte[] data = dp.getData(); + //Чݳ + int len = dp.getLength(); + //ͻIP + InetAddress clientAddress = dp.getAddress(); + //ͻ˶˿ + int clientPort = dp.getPort(); + // + System.out.println("ͻIP" + clientAddress.getHostAddress()); + System.out.println("ͻ˶˿ںţ" + clientPort); + StringBuffer sb = new StringBuffer(); + for(int i=0;i0){ + receive = receive.substring(0,receive.length()-1); + } + System.out.println("ͻ˷ݣ"+receive); + String res = DataHandle.toParseData(data,len); + //ͻ + byte[] b = DataHandle.toStringByte(res); +// byte[] b = res.getBytes(); + +// StringBuffer sb2 = new StringBuffer(); +// for(int i=0;i0){ +// receive2 = receive2.substring(0,receive2.length()-1); +// } +// System.out.println("ͻ˷2"+receive2); +// +// DataHandle.toParseData(b,b.length); + DatagramPacket sendDp = new DatagramPacket(b,b.length,clientAddress,clientPort); + // + ds.send(sendDp); + }catch(Exception e){ + e.printStackTrace(); + } + } + + + +} \ No newline at end of file diff --git a/wsdjc/src/com/surfbird/socket/server/service/MulUDPServer.java b/wsdjc/src/com/surfbird/socket/server/service/MulUDPServer.java new file mode 100644 index 0000000..608a429 --- /dev/null +++ b/wsdjc/src/com/surfbird/socket/server/service/MulUDPServer.java @@ -0,0 +1,32 @@ +package com.surfbird.socket.server.service; + +import java.net.*; + +public class MulUDPServer { + public static void main(String[] args) { + DatagramSocket ds = null; //Ӷ + DatagramPacket receiveDp; //ݰ + final int PORT = 8030; //˿ + byte[] b = new byte[1024]; + receiveDp = new DatagramPacket(b,b.length); + try{ + //ӣ˿ + ds = new DatagramSocket(PORT); + System.out.println(""); + while(true){ + // + ds.receive(receiveDp); + //̴߳ݰ + new LogicThread(ds,receiveDp); + } + }catch(Exception e){ + e.printStackTrace(); + }finally{ + try{ + //ر + ds.close(); + }catch(Exception e){ + } + } + } +} diff --git a/wsdjc/src/com/surfbird/socket/server/service/SimpleUDPClient.java b/wsdjc/src/com/surfbird/socket/server/service/SimpleUDPClient.java new file mode 100644 index 0000000..e0ed804 --- /dev/null +++ b/wsdjc/src/com/surfbird/socket/server/service/SimpleUDPClient.java @@ -0,0 +1,45 @@ +package com.surfbird.socket.server.service; + +import java.net.*; + +public class SimpleUDPClient { + public static void main(String[] args) { + DatagramSocket ds = null; //Ӷ + DatagramPacket sendDp; //ݰ + DatagramPacket receiveDp; //ݰ + String serverHost = "115.175.20.152"; //IP + int serverPort = 8030; //˿ں + try{ + // + ds = new DatagramSocket(); + System.out.println("ͻ׼"); + //ʼ + String content = "Hello world!"; //תΪַ + byte[] data = content.getBytes(); + //ʼͰ + InetAddress address = InetAddress.getByName(serverHost); + sendDp = new DatagramPacket(data,data.length,address,serverPort); + // + ds.send(sendDp); + //ʼ + byte[] b = new byte[1024]; + receiveDp = new DatagramPacket(b,b.length); + // + ds.receive(receiveDp); + //ȡݣ + byte[] response = receiveDp.getData(); + int len = receiveDp.getLength(); + String s = new String(response,0,len); + System.out.println("˷Ϊ" + s); + }catch(Exception e){ + e.printStackTrace(); + }finally{ + try{ + //ر + ds.close(); + }catch(Exception e){ + + } + } + } +} diff --git a/wsdjc/src/com/surfbird/socket/server/service/UdpServer.java b/wsdjc/src/com/surfbird/socket/server/service/UdpServer.java new file mode 100644 index 0000000..7de47bd --- /dev/null +++ b/wsdjc/src/com/surfbird/socket/server/service/UdpServer.java @@ -0,0 +1,39 @@ +package com.surfbird.socket.server.service; + +import java.net.DatagramPacket; +import java.net.DatagramSocket; + +import com.surfbird.util.Global; + +public class UdpServer implements Runnable{ + + private DatagramSocket ds = null; //Ӷ + private DatagramPacket receiveDp; //ݰ + + public UdpServer(){ + } + + public void run() { + byte[] b = new byte[1024]; + receiveDp = new DatagramPacket(b,b.length); + try{ + int port = Global.UDP_PORT; + //ӣ˿ + ds = new DatagramSocket(port); + System.out.println(""); + while(true){ + // + ds.receive(receiveDp); + //̴߳ݰ + new LogicThread(ds,receiveDp); + } + }catch(Exception e){ + e.printStackTrace(); + }finally{ + try{ + //ر + ds.close(); + }catch(Exception e){} + } + } +} \ No newline at end of file diff --git a/wsdjc/src/com/surfbird/util/CRC16Util.java b/wsdjc/src/com/surfbird/util/CRC16Util.java new file mode 100644 index 0000000..e4ad1b2 --- /dev/null +++ b/wsdjc/src/com/surfbird/util/CRC16Util.java @@ -0,0 +1,140 @@ +package com.surfbird.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/wsdjc/src/com/surfbird/util/DataCollect.java b/wsdjc/src/com/surfbird/util/DataCollect.java new file mode 100644 index 0000000..246b638 --- /dev/null +++ b/wsdjc/src/com/surfbird/util/DataCollect.java @@ -0,0 +1,48 @@ +package com.surfbird.util; + +import java.net.DatagramPacket; +import java.net.DatagramSocket; +import java.net.InetAddress; +import java.text.SimpleDateFormat; +import java.util.Date; + +import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; + +@Component +public class DataCollect { + + /** + * . + **/ + @Scheduled(cron="0 * * * * ?") + public void instructions() { + int port = Global.UDP_PORT; + String serverHost = "127.0.0.1"; + DatagramSocket ds = null; //Ӷ + DatagramPacket sendDp; //ݰ + try{ + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + // + ds = new DatagramSocket(); + //ʼ + InetAddress address = InetAddress.getByName(serverHost); + System.out.println(":"+sdf.format(new Date())); + String content = "RunTest"; + byte[] data = content.getBytes(); + //ʼͰ + sendDp = new DatagramPacket(data,data.length,address, port); + ds.send(sendDp); + }catch(Exception e){ + e.printStackTrace(); + }finally{ + try{ + //ر + ds.close(); + }catch(Exception e){ + + } + } + } + +} diff --git a/wsdjc/src/com/surfbird/util/Global.java b/wsdjc/src/com/surfbird/util/Global.java new file mode 100644 index 0000000..60ecbb4 --- /dev/null +++ b/wsdjc/src/com/surfbird/util/Global.java @@ -0,0 +1,16 @@ +package com.surfbird.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"; + // UDP˿ + public static final int UDP_PORT = 8030; +} diff --git a/wsdjc/src/com/surfbird/util/MultipleDataSource.java b/wsdjc/src/com/surfbird/util/MultipleDataSource.java new file mode 100644 index 0000000..54b562b --- /dev/null +++ b/wsdjc/src/com/surfbird/util/MultipleDataSource.java @@ -0,0 +1,20 @@ +package com.surfbird.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/wsdjc/src/com/surfbird/util/convert/DataFormula.java b/wsdjc/src/com/surfbird/util/convert/DataFormula.java new file mode 100644 index 0000000..fb444c1 --- /dev/null +++ b/wsdjc/src/com/surfbird/util/convert/DataFormula.java @@ -0,0 +1,44 @@ +package com.surfbird.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/wsdjc/src/com/surfbird/util/convert/DataHandle.java b/wsdjc/src/com/surfbird/util/convert/DataHandle.java new file mode 100644 index 0000000..fa57318 --- /dev/null +++ b/wsdjc/src/com/surfbird/util/convert/DataHandle.java @@ -0,0 +1,399 @@ +package com.surfbird.util.convert; + +import java.math.BigDecimal; +import java.math.RoundingMode; +import java.text.SimpleDateFormat; +import java.util.Date; + +import com.surfbird.business.bean.Temperature; +import com.surfbird.common.util.JdbcInstance; + +public class DataHandle { + + /** + * + * @param receive + * @param len + * @return + */ + public static String toParseData(byte[] receive, int len) { + String analysis = DataHandle.toHexString(receive, len); + System.out.println("ͻ˷HEXݣ" + analysis); + String magicWord = analysis.substring(0,8); // + if(magicWord.equals("5763536A")){ + String cmdDataLen = analysis.substring(8,12);//ݳȣֽ + String dataLenStr = reverseBytes(cmdDataLen);//ת + int dataLen = hexToDec(dataLenStr); //ݳֽʮ + String cmdId = analysis.substring(12,14); // + String cmdData = analysis.substring(14,14+dataLen*2); //ֽ飬һֽռַ + if(cmdId.equals("01")){ + return registerDevice(magicWord,cmdData); + } + if(cmdId.equals("02")){ + return monitorData(magicWord,cmdData); + } + if(cmdId.equals("81")||cmdId.equals("82")){ + ackData(magicWord,cmdData); + } + } + return "52756E54657374";//RunTest + } + + public static void ackData(String magicWord,String cmdData){ + System.out.println("֤Ӧݣ"); + System.out.println(cmdData); + int NewSetting = hexToDec(cmdData.substring(0,2)); + System.out.println("NewSetting" + NewSetting); + int NewFirmware = hexToDec(cmdData.substring(2,4)); + System.out.println("NewFirmware" + NewFirmware); + String Year = cmdData.substring(4,8); + String dataLenStr = reverseBytes(Year); + int dataLen = hexToDec(dataLenStr); + System.out.println("Year" + dataLen); + int Month = hexToDec(cmdData.substring(8,10)); + System.out.println("Month" + Month); + int Day = hexToDec(cmdData.substring(10,12)); + System.out.println("Day" + Day); + int Hour = hexToDec(cmdData.substring(12,14)); + System.out.println("Hour" + Hour); + int Minute = hexToDec(cmdData.substring(14,16)); + System.out.println("Minute:" + Minute); + int Second = hexToDec(cmdData.substring(16,18)); + System.out.println("Second" + Second); + String BeijingTime = cmdData.substring(18); + BeijingTime = reverseBytes(BeijingTime); + int BeijingTimeLen = hexToDec(BeijingTime); + System.out.println("BeijingTime" + BeijingTimeLen); + } + + public static String registerDevice(String magicWord,String cmdData){ + System.out.println("ע豸"); + System.out.println(cmdData); + String deviceKey = hexToString(cmdData.substring(0,30));//IMEI豸 + System.out.println("IMEI豸룺" + deviceKey); + int majorVersion = hexToDec(cmdData.substring(36,38));//汾ţ1-9 + System.out.println("汾ţ" + majorVersion); + int minorVersion = hexToDec(cmdData.substring(38,40));//ΰ汾ţ0-99 + System.out.println("ΰ汾ţ" + minorVersion); + String ICCID = hexToString(cmdData.substring(40,80));//ICCID + System.out.println("ICCID룺" + ICCID); + return ackStr(magicWord,"81"); + } + + public static String monitorData(String magicWord,String cmdData){ + System.out.println("ʵʱݣ"); + System.out.println(cmdData); + String deviceKey = hexToString(cmdData.substring(0,30));//IMEI豸 + String upPeri = cmdData.substring(36,40);//ڣmin + String upPeri_re = reverseBytes(upPeri);//ת + int upPeriInt = hexToDec(upPeri_re); //ڣminʮ + int CSQ = hexToDec(cmdData.substring(40,42));//źǿȣ0-32ֵԽʾźԽ + int BAT = hexToDec(cmdData.substring(42,44));//ص(%)0xFFʾװ÷ǵع + int ErrNet = hexToDec(cmdData.substring(44,46));//ϡ0 1 + int ErrTemp = hexToDec(cmdData.substring(46,48));//豸ϡ0 1 + int OffLine = hexToDec(cmdData.substring(48,50));//籨0 1 + int ErrMove = hexToDec(cmdData.substring(50,52));//λƱ0 1 + int Reserved = hexToDec(cmdData.substring(52,54));//Ϊ0 + int ItemCount = hexToDec(cmdData.substring(54,56));//<= 128 + System.out.println("IMEI豸룺" + deviceKey); + System.out.println("ڣ" + upPeriInt); + System.out.println("źǿȣ" + CSQ); + System.out.println("ص" + BAT); + System.out.println("ϣ" + ErrNet); + System.out.println("豸ϣ" + ErrTemp); + System.out.println("籨" + OffLine); + System.out.println("λƱ" + ErrMove); + System.out.println("" + ItemCount); + String aHumitureData = cmdData.substring(56); + int dataLen = 16; + BigDecimal dev = new BigDecimal(10); + for(int i=0;i + + + MyBatis Data Source Configuration + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file