Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
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
黄奎
mall.oytour.com
Commits
56e8d801
Commit
56e8d801
authored
Jun 23, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品导入
parent
8dcce85e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
460 additions
and
1 deletion
+460
-1
RB_Distributor_GradeRepository.cs
Mall.Repository/User/RB_Distributor_GradeRepository.cs
+1
-1
GoodsHelper.cs
Test/Helper/GoodsHelper.cs
+293
-0
GoodsInfo.cs
Test/Model/GoodsInfo.cs
+164
-0
Test.csproj
Test/Test.csproj
+2
-0
No files found.
Mall.Repository/User/RB_Distributor_GradeRepository.cs
View file @
56e8d801
...
...
@@ -84,7 +84,7 @@ namespace Mall.Repository.User
where
+=
$@" and
{
nameof
(
RB_Distributor_Grade
.
Enabled
)}
=
{
dmodel
.
Enabled
}
"
;
}
string
sql
=
$@"select * from RB_Distributor_Grade where
{
where
}
order by
Id de
sc"
;
string
sql
=
$@"select * from RB_Distributor_Grade where
{
where
}
order by
Grade a
sc"
;
return
Get
<
RB_Distributor_Grade_Extend
>(
sql
).
ToList
();
}
...
...
Test/Helper/GoodsHelper.cs
0 → 100644
View file @
56e8d801
This diff is collapsed.
Click to expand it.
Test/Model/GoodsInfo.cs
0 → 100644
View file @
56e8d801
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
Test.Model
{
/// <summary>
/// 订单信息
/// </summary>
public
class
Goods
{
/// <summary>
/// 主键编号
/// </summary>
public
int
id
{
get
;
set
;
}
}
public
class
GoodsDetail
{
public
string
name
{
get
;
set
;
}
public
decimal
original_price
{
get
;
set
;
}
public
decimal
cost_price
{
get
;
set
;
}
public
string
detail
{
get
;
set
;
}
public
string
cover_pic
{
get
;
set
;
}
public
List
<
PicModel
>
pic_url
{
get
;
set
;
}
public
string
video_url
{
get
;
set
;
}
public
string
unit
{
get
;
set
;
}
public
string
created_at
{
get
;
set
;
}
public
string
updated_at
{
get
;
set
;
}
public
decimal
price
{
get
;
set
;
}
public
int
use_attr
{
get
;
set
;
}
public
List
<
attr_groups
>
attr_groups
{
get
;
set
;
}
public
int
goods_stock
{
get
;
set
;
}
public
string
goods_no
{
get
;
set
;
}
public
int
goods_weight
{
get
;
set
;
}
public
int
virtual_sales
{
get
;
set
;
}
/// <summary>
/// 限购数量
/// </summary>
public
int
confine_count
{
get
;
set
;
}
public
int
confine_order_count
{
get
;
set
;
}
/// <summary>
/// 单品满件包邮
/// </summary>
public
int
pieces
{
get
;
set
;
}
/// <summary>
/// 单品满额包邮
/// </summary>
public
decimal
forehead
{
get
;
set
;
}
public
int
freight_id
{
get
;
set
;
}
public
int
give_integral
{
get
;
set
;
}
public
int
give_integral_type
{
get
;
set
;
}
public
decimal
forehead_integral
{
get
;
set
;
}
public
int
forehead_integral_type
{
get
;
set
;
}
/// <summary>
/// 多件抵扣
/// </summary>
public
int
accumulative
{
get
;
set
;
}
/// <summary>
/// 是否开启单独分销
/// </summary>
public
int
individual_share
{
get
;
set
;
}
/// <summary>
/// 分销类型
/// </summary>
public
int
attr_setting_type
{
get
;
set
;
}
/// <summary>
/// 分销佣金类型
/// </summary>
public
int
share_type
{
get
;
set
;
}
public
int
is_quick_shop
{
get
;
set
;
}
public
string
app_share_pic
{
get
;
set
;
}
public
string
app_share_title
{
get
;
set
;
}
public
int
sort
{
get
;
set
;
}
public
int
is_area_limit
{
get
;
set
;
}
public
List
<
arealimit
>
area_limit
{
get
;
set
;
}
public
int
goods_num
{
get
;
set
;
}
public
List
<
cats
>
cats
{
get
;
set
;
}
public
List
<
attr
>
attr
{
get
;
set
;
}
public
List
<
shareLevelList
>
shareLevelList
{
get
;
set
;
}
public
int
status
{
get
;
set
;
}
}
public
class
attr
{
public
int
id
{
get
;
set
;
}
public
int
goods_id
{
get
;
set
;
}
public
string
no
{
get
;
set
;
}
public
decimal
price
{
get
;
set
;
}
public
string
sign_id
{
get
;
set
;
}
public
int
stock
{
get
;
set
;
}
public
int
weight
{
get
;
set
;
}
public
List
<
shareLevelList
>
shareLevelList
{
get
;
set
;
}
}
public
class
shareLevelList
{
public
int
level
{
get
;
set
;
}
public
decimal
share_commission_first
{
get
;
set
;
}
public
decimal
share_commission_second
{
get
;
set
;
}
public
decimal
share_commission_third
{
get
;
set
;
}
}
public
class
cats
{
public
string
label
{
get
;
set
;
}
public
int
value
{
get
;
set
;
}
}
public
class
arealimit
{
public
List
<
arealist
>
list
{
get
;
set
;
}
}
public
class
arealist
{
public
int
id
{
get
;
set
;
}
public
string
name
{
get
;
set
;
}
}
public
class
PicModel
{
public
int
id
{
get
;
set
;
}
public
string
pic_url
{
get
;
set
;
}
}
public
class
attr_groups
{
public
int
attr_group_id
{
get
;
set
;
}
public
string
attr_group_name
{
get
;
set
;
}
public
List
<
attr_list
>
attr_list
{
get
;
set
;
}
}
public
class
attr_list
{
public
int
attr_id
{
get
;
set
;
}
public
string
attr_name
{
get
;
set
;
}
public
string
pic_url
{
get
;
set
;
}
}
}
Test/Test.csproj
View file @
56e8d801
...
...
@@ -68,10 +68,12 @@
<ItemGroup>
<Compile
Include=
"DBHelper\MySqlHelper.cs"
/>
<Compile
Include=
"Helper\FreightRulesHelper.cs"
/>
<Compile
Include=
"Helper\GoodsHelper.cs"
/>
<Compile
Include=
"Model\Destination.cs"
/>
<Compile
Include=
"Model\FreightRules.cs"
/>
<Compile
Include=
"Helper\UserHelper.cs"
/>
<Compile
Include=
"Helper\MallHelper.cs"
/>
<Compile
Include=
"Model\GoodsInfo.cs"
/>
<Compile
Include=
"Model\RB_Member_User.cs"
/>
<Compile
Include=
"Helper\OrderCommissionHelper.cs"
/>
<Compile
Include=
"Helper\OrderHelper.cs"
/>
...
...
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