Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Svn-to-Git
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王进波
Svn-to-Git
Commits
d1fa52e1
Commit
d1fa52e1
authored
Sep 27, 2018
by
王进波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fee7a30d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
LinqPad快速开发数据轮询持久化.md
doc/LinqPad快速开发数据轮询持久化.md
+4
-8
No files found.
doc/LinqPad快速开发数据轮询持久化.md
View file @
d1fa52e1
...
...
@@ -429,8 +429,7 @@ public class LoggingJob : IJob
begin
insert into SCADA_SensorRealTime(SensorID,LastValue,LastTime)values(@SensorID,@LastValue,@LastTime)
end
end
go ";
end";
const string sql_MergePumpRealData = @"
create procedure dbo.MergePumpRealData @BaseID nvarchar(20),@FOnline int, @F40009 float, @F40014 float, @LastTime datetime
as
...
...
@@ -441,8 +440,7 @@ public class LoggingJob : IJob
begin
insert into PumpRealData(BASEID,FOnLine,f40009,F40014,FUpdateDate,TempTime)values(@BaseID,@FOnline,@f40009,@F40014,@LastTime,@LastTime)
end
end
go ";
end";
const string sql_MergePumpAlarmTimely = @"
create procedure dbo.MergePumpAlarmTimely @pumpJZID nvarchar(20),@ParamID int, @Tips nvarchar(50), @LastTime datetime
as
...
...
@@ -451,11 +449,9 @@ public class LoggingJob : IJob
update PumpAlarmTimely set BeginAlarmTime = @LastTime, ParamID = @ParamID, Tips = @Tips where PumpJZID = @pumpJZID
if(@@ROWCOUNT=0)
begin
insert into PumpAlarmTimely(PumpJZID,BeginAlarmTime,ParamID,Tips
)values(@pumpJZID,@LastTime,@ParamID,@Tips
)
insert into PumpAlarmTimely(PumpJZID,BeginAlarmTime,ParamID,Tips
,AlarmOrWarn)values(@pumpJZID,@LastTime,@ParamID,@Tips,1
)
end
end
go ";
end";
}
``
`
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment