Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
bltdc
DataCenter_Core2.1_20190520
Commits
ddb7ab3f
Commit
ddb7ab3f
authored
Jun 18, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决代码错误
parent
9b7b6737
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
TaskCenterServices.cs
Bailun.DC.Services/TaskCenterServices.cs
+3
-3
No files found.
Bailun.DC.Services/TaskCenterServices.cs
View file @
ddb7ab3f
...
@@ -371,7 +371,7 @@ namespace Bailun.DC.Services
...
@@ -371,7 +371,7 @@ namespace Bailun.DC.Services
/// <param name="status">任务状态 0:未认领,1:任务执行失败,2:已认领,3:执行成功</param>
/// <param name="status">任务状态 0:未认领,1:任务执行失败,2:已认领,3:执行成功</param>
/// <param name="fileurl">可下载的文件地址</param>
/// <param name="fileurl">可下载的文件地址</param>
/// <returns></returns>
/// <returns></returns>
public
string
UpdateTask
(
int
id
,
int
status
,
string
fileurl
)
public
string
UpdateTask
(
int
id
,
int
status
,
string
fileurl
)
{
{
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
{
{
...
@@ -380,7 +380,7 @@ namespace Bailun.DC.Services
...
@@ -380,7 +380,7 @@ namespace Bailun.DC.Services
cn
.
Open
();
cn
.
Open
();
}
}
var
obj
=
cn
.
QueryFirstOrDefault
<
taskcenter_tasklist
>(
"select t1.* from taskcenter_tasklist t1 where id="
+
id
);
var
obj
=
cn
.
QueryFirstOrDefault
<
taskcenter_tasklist
>(
"select t1.* from taskcenter_tasklist t1 where id="
+
id
);
if
(
obj
==
null
)
if
(
obj
==
null
)
{
{
return
"找不到该任务"
;
return
"找不到该任务"
;
...
@@ -394,7 +394,7 @@ namespace Bailun.DC.Services
...
@@ -394,7 +394,7 @@ namespace Bailun.DC.Services
return
""
;
return
""
;
}
}
}
#
endregion
#
endregion
}
}
...
...
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