Commit 56e8d801 authored by liudong1993's avatar liudong1993

商品导入

parent 8dcce85e
......@@ -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 desc";
string sql = $@"select * from RB_Distributor_Grade where {where} order by Grade asc";
return Get<RB_Distributor_Grade_Extend>(sql).ToList();
}
......
This diff is collapsed.
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; }
}
}
......@@ -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" />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment