Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
data-center-auto
Commits
46800b2a
Commit
46800b2a
authored
Dec 23, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
926eab15
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
dc_task_download_dao.cs
AutoTurnOver.DB/dc_task_download_dao.cs
+17
-1
dc_base_stock.cs
AutoTurnOver.Models/dc_base_stock.cs
+0
-1
No files found.
AutoTurnOver.DB/dc_task_download_dao.cs
View file @
46800b2a
...
...
@@ -36,7 +36,9 @@ namespace AutoTurnOver.DB
var
obj
=
item
.
GetValue
(
par
);
if
(
obj
!=
null
&&
!
string
.
IsNullOrWhiteSpace
(
obj
.
ToString
()))
{
parList
.
Add
(
$"[
{
descriptionData
.
Description
}
]=
{
obj
.
ToString
()}
"
);
var
val
=
obj
.
ToString
();
val
=
RenderVal
(
descriptionData
.
Description
,
val
);
parList
.
Add
(
$"[
{
descriptionData
.
Description
}
]=
{
val
}
"
);
}
}
...
...
@@ -54,6 +56,20 @@ namespace AutoTurnOver.DB
_connection
.
Insert
(
data
);
}
/// <summary>
/// 渲染参数
/// </summary>
/// <param name="description"></param>
/// <param name="val"></param>
public
static
string
RenderVal
(
string
description
,
string
val
)
{
if
(
description
==
"仓库国家"
)
{
return
_connection
.
QueryFirstOrDefault
<
string
>(
" select area_name from dc_base_warehouse where area_id=@area_id limit 1 "
,
new
{
area_id
=
val
});
}
return
val
;
}
}
}
AutoTurnOver.Models/dc_base_stock.cs
View file @
46800b2a
...
...
@@ -381,7 +381,6 @@ namespace AutoTurnOver.Models
public
bool
isSum
{
get
;
set
;
}
public
bool
is_warehouse_sum
{
get
;
set
;
}
[
Description
(
"搜索类型"
)]
public
int
?
searchType
{
get
;
set
;
}
[
Description
(
"搜索关键词"
)]
...
...
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