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
0c40896b
Commit
0c40896b
authored
Jun 25, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复实时缺货导出异常
parent
e2fbb4e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
quantity_out_stock_detail_dto.cs
AutoTurnOver.Models/Report/quantity_out_stock_detail_dto.cs
+19
-9
No files found.
AutoTurnOver.Models/Report/quantity_out_stock_detail_dto.cs
View file @
0c40896b
...
...
@@ -181,15 +181,25 @@ namespace AutoTurnOver.Models.Report
var
temp_sry
=
buy_str
.
Replace
(
"【"
,
""
).
Replace
(
"】"
,
""
);
var
buy_array
=
temp_sry
.
Split
(
'|'
);
// Trim()
var
buy_array_length
=
buy_array
.
Count
();
datas
.
Add
(
new
buy_ontheway_detail_dto
{
no
=
buy_array
[
0
].
Trim
(),
count
=
int
.
Parse
(
buy_array
[
1
].
Trim
()),
inbound
=
int
.
Parse
(
buy_array
[
2
].
Trim
()),
arrival_date
=
DateTime
.
Parse
(
buy_array
[
3
].
Trim
()),
supplier_name
=
buy_array_length
<
5
?
""
:
buy_array
[
4
].
Trim
(),
alibaba_order_id
=
buy_array_length
<
6
?
""
:
buy_array
[
5
].
Trim
(),
logistics_order_id
=
buy_array_length
<
7
?
""
:
buy_array
[
6
].
Trim
(),
});
if
(
buy_array_length
<
4
)
continue
;
try
{
datas
.
Add
(
new
buy_ontheway_detail_dto
{
no
=
buy_array
[
0
].
Trim
(),
count
=
int
.
Parse
(
buy_array
[
1
].
Trim
()),
inbound
=
int
.
Parse
(
buy_array
[
2
].
Trim
()),
arrival_date
=
DateTime
.
Parse
(
buy_array
[
3
].
Trim
()),
supplier_name
=
buy_array_length
<
5
?
""
:
buy_array
[
4
].
Trim
(),
alibaba_order_id
=
buy_array_length
<
6
?
""
:
buy_array
[
5
].
Trim
(),
logistics_order_id
=
buy_array_length
<
7
?
""
:
buy_array
[
6
].
Trim
(),
});
}
catch
{
throw
new
Exception
(
temp_sry
);
}
}
return
datas
;
...
...
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