fixed 完善商品添加
This commit is contained in:
parent
52ede538ea
commit
87ba088613
@ -9,7 +9,7 @@ namespace ARW.Model.Dto.Api.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户查询对象Api
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-07
|
||||
/// </summary>
|
||||
public class CustomerQueryDtoApi : PagerInfo
|
||||
@ -23,7 +23,7 @@ namespace ARW.Model.Dto.Api.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户详情输入对象Api
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-07
|
||||
/// </summary>
|
||||
public class CustomerDtoApi
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Dto.Api.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺查询对象Api
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
public class ShopQueryDtoApi : PagerInfo
|
||||
@ -22,7 +22,7 @@ namespace ARW.Model.Dto.Api.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺详情输入对象Api
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
public class ShopDtoApi
|
||||
|
@ -6,7 +6,7 @@ namespace ARW.Model.Dto.Business.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-05
|
||||
/// </summary>
|
||||
public class CustomerDto
|
||||
@ -71,7 +71,7 @@ namespace ARW.Model.Dto.Business.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-05
|
||||
/// </summary>
|
||||
public class CustomerQueryDto : PagerInfo
|
||||
@ -94,7 +94,7 @@ namespace ARW.Model.Dto.Business.Custom.Customers
|
||||
/// <summary>
|
||||
/// 客户微信手机号登录 输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-06
|
||||
/// </summary>
|
||||
public class CustomerLoginDto
|
||||
@ -116,7 +116,7 @@ namespace ARW.Model.Dto.Business.Custom.Customers
|
||||
/// <summary>
|
||||
/// 客户手机号登录 输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-06
|
||||
/// </summary>
|
||||
public class CustomerPhoneLoginDto
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsCategorys
|
||||
/// <summary>
|
||||
/// 商品类目输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
public class GoodsCategoryDto
|
||||
@ -46,7 +46,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsCategorys
|
||||
/// <summary>
|
||||
/// 商品类目查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
public class GoodsCategoryQueryDto : PagerInfo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsServicess
|
||||
/// <summary>
|
||||
/// 商品服务与承诺输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public class GoodsServicesDto
|
||||
@ -45,7 +45,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsServicess
|
||||
/// <summary>
|
||||
/// 商品服务与承诺查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public class GoodsServicesQueryDto : PagerInfo
|
||||
|
@ -5,7 +5,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsServicess.GoodsServicesRels
|
||||
/// <summary>
|
||||
/// 商品服务与承诺关系表输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public class GoodsServicesRelDto
|
||||
@ -34,7 +34,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsServicess.GoodsServicesRels
|
||||
/// <summary>
|
||||
/// 商品服务与承诺关系表查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public class GoodsServicesRelQueryDto : PagerInfo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.GoodsSkus
|
||||
/// <summary>
|
||||
/// 商品规格输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class GoodsSkuDto
|
||||
@ -51,7 +51,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.GoodsSkus
|
||||
/// <summary>
|
||||
/// 商品规格查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class GoodsSkuQueryDto : PagerInfo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.GoodsSpecRels
|
||||
/// <summary>
|
||||
/// 商品与规格值关系记录输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class GoodsSpecRelDto
|
||||
@ -35,7 +35,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.GoodsSpecRels
|
||||
/// <summary>
|
||||
/// 商品与规格值关系记录查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class GoodsSpecRelQueryDto : PagerInfo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.SpecValues
|
||||
/// <summary>
|
||||
/// 商品规格值输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class SpecValueDto
|
||||
@ -32,7 +32,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.SpecValues
|
||||
/// <summary>
|
||||
/// 商品规格值查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class SpecValueQueryDto : PagerInfo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.Specs
|
||||
/// <summary>
|
||||
/// 商品规格组输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class SpecDto
|
||||
@ -29,7 +29,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.Specs
|
||||
/// <summary>
|
||||
/// 商品规格组查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class SpecQueryDto : PagerInfo
|
||||
|
@ -1,14 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Reflection.Metadata.Ecma335;
|
||||
using ARW.Model.Models.Business.GoodsManager.Goodss;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure;
|
||||
|
||||
namespace ARW.Model.Dto.Business.GoodsManager.Goodss
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class GoodsDto
|
||||
@ -28,6 +30,17 @@ namespace ARW.Model.Dto.Business.GoodsManager.Goodss
|
||||
|
||||
public string GoodsServicesIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 商品规格
|
||||
/// </summary>
|
||||
public List<GoodsSpecDto> GoodsSpecList { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 商品sku列表
|
||||
/// </summary>
|
||||
public List<SkuDto> SkuList { get; set; }
|
||||
|
||||
|
||||
[Required(ErrorMessage = "配送模板guid不能为空")]
|
||||
public long DeliveryGuid { get; set; }
|
||||
@ -108,7 +121,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.Goodss
|
||||
/// <summary>
|
||||
/// 商品查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class GoodsQueryDto : PagerInfo
|
||||
@ -126,5 +139,71 @@ namespace ARW.Model.Dto.Business.GoodsManager.Goodss
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 商品规格组对象
|
||||
///
|
||||
/// @author lwh
|
||||
/// @date 2023-06-24
|
||||
/// </summary>
|
||||
public class GoodsSpecDto
|
||||
{
|
||||
|
||||
public int SpecId { get; set; }
|
||||
|
||||
public string SpecName { get; set; }
|
||||
|
||||
public List<GoodsSpecValueDto> Props { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 商品规格值列表对象
|
||||
///
|
||||
/// @author lwh
|
||||
/// @date 2023-06-24
|
||||
/// </summary>
|
||||
public class GoodsSpecValueDto
|
||||
{
|
||||
|
||||
public int SpecId { get; set; }
|
||||
|
||||
public int SpecValueId { get; set; }
|
||||
|
||||
public string SpecValueName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 商品sku列表对象
|
||||
///
|
||||
/// @author lwh
|
||||
/// @date 2023-06-24
|
||||
/// </summary>
|
||||
public class SkuDto
|
||||
{
|
||||
|
||||
public string SpecValue{ get; set; }
|
||||
|
||||
public string SpecSecondValue { get; set; }
|
||||
|
||||
public string SpecThirdValue { get; set; }
|
||||
|
||||
public long GoodsGuid { get; set; }
|
||||
|
||||
public string GoodsSkuImg { get; set; }
|
||||
|
||||
public decimal GoodsSkuPrice { get; set; }
|
||||
|
||||
public decimal GoodsSkuLinePrice { get; set; }
|
||||
|
||||
public int GoodsSkuStockNum { get; set; }
|
||||
|
||||
public decimal GoodsSkuWeight { get; set; }
|
||||
|
||||
public string GoodsSkuSkuCode { get;set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.ShopGoodsCategorys
|
||||
/// <summary>
|
||||
/// 店铺商品类目输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
public class ShopGoodsCategoryDto
|
||||
@ -44,7 +44,7 @@ namespace ARW.Model.Dto.Business.GoodsManager.ShopGoodsCategorys
|
||||
/// <summary>
|
||||
/// 店铺商品类目查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
public class ShopGoodsCategoryQueryDto : PagerInfo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Dto.Business.LogisticsManage.DeliveryRules
|
||||
/// <summary>
|
||||
/// 配送模板区域及运费输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
public class DeliveryRuleDto
|
||||
@ -49,7 +49,7 @@ namespace ARW.Model.Dto.Business.LogisticsManage.DeliveryRules
|
||||
/// <summary>
|
||||
/// 配送模板区域及运费查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
public class DeliveryRuleQueryDto : PagerInfo
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Dto.Business.LogisticsManage.Deliverys
|
||||
/// <summary>
|
||||
/// 配送模板输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
public class DeliveryDto
|
||||
@ -44,7 +44,7 @@ namespace ARW.Model.Dto.Business.LogisticsManage.Deliverys
|
||||
/// <summary>
|
||||
/// 配送模板查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
public class DeliveryQueryDto : PagerInfo
|
||||
@ -64,7 +64,7 @@ namespace ARW.Model.Dto.Business.LogisticsManage.Deliverys
|
||||
/// <summary>
|
||||
/// 配送模板的配送区域和运费查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
public class DeliveryRuleEditDto
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Dto.Business.LogisticsManage.LogisticsCompanys
|
||||
/// <summary>
|
||||
/// 物流公司输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public class LogisticsCompanyDto
|
||||
@ -37,7 +37,7 @@ namespace ARW.Model.Dto.Business.LogisticsManage.LogisticsCompanys
|
||||
/// <summary>
|
||||
/// 物流公司查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public class LogisticsCompanyQueryDto : PagerInfo
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Dto.Business.ShopManager.ShopAddresss
|
||||
/// <summary>
|
||||
/// 店铺地址输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
public class ShopAddressDto
|
||||
@ -56,7 +56,7 @@ namespace ARW.Model.Dto.Business.ShopManager.ShopAddresss
|
||||
/// <summary>
|
||||
/// 店铺地址查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
public class ShopAddressQueryDto : PagerInfo
|
||||
|
@ -11,7 +11,7 @@ namespace ARW.Model.Dto.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺输入对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
public class ShopDto
|
||||
@ -58,7 +58,7 @@ namespace ARW.Model.Dto.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
public class ShopQueryDto : PagerInfo
|
||||
@ -74,7 +74,7 @@ namespace ARW.Model.Dto.Business.ShopManager.Shops
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// 审核对象
|
||||
/// </summary>
|
||||
@ -88,7 +88,7 @@ namespace ARW.Model.Dto.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 未绑定的用户查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
public class UserWithOutBindQueryDto : PagerInfo
|
||||
@ -102,7 +102,7 @@ namespace ARW.Model.Dto.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 未绑定的客户查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
public class CustomerWithOutBindQueryDto : PagerInfo
|
||||
@ -117,7 +117,7 @@ namespace ARW.Model.Dto.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 商户店铺查询对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
public class ShopOperatorQueryDto
|
||||
@ -130,7 +130,7 @@ namespace ARW.Model.Dto.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 商户店铺编辑对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
public class ShopOperatorEditDto
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-05
|
||||
/// </summary>
|
||||
[SugarTable("tb_customer")]
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.GoodsManager.GoodsCategorys
|
||||
/// <summary>
|
||||
/// 商品类目,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
[SugarTable("tb_goods_category")]
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.GoodsManager.GoodsServicess
|
||||
/// <summary>
|
||||
/// 商品服务与承诺,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
[SugarTable("tb_goods_services")]
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.GoodsManager.GoodsServicess.GoodsServicesRel
|
||||
/// <summary>
|
||||
/// 商品服务与承诺关系表,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
[SugarTable("tb_goods_services_rel")]
|
||||
@ -24,15 +24,6 @@ namespace ARW.Model.Models.Business.GoodsManager.GoodsServicess.GoodsServicesRel
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 描述 :
|
||||
/// 空值 : false
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
|
||||
public long Guid { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 描述 :店铺guid
|
||||
/// 空值 : false
|
||||
@ -52,12 +43,12 @@ namespace ARW.Model.Models.Business.GoodsManager.GoodsServicess.GoodsServicesRel
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 描述 :服务与承诺guid
|
||||
/// 描述 :服务与承诺id
|
||||
/// 空值 : false
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
[SugarColumn(ColumnName = "service_guid")]
|
||||
public long ServiceGuid { get; set; }
|
||||
[SugarColumn(ColumnName = "service_id")]
|
||||
public int ServiceId { get; set; }
|
||||
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.GoodsManager.GoodsSpecs.GoodsSkus
|
||||
/// <summary>
|
||||
/// 商品规格,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[SugarTable("tb_goods_sku")]
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.GoodsManager.GoodsSpecs.GoodsSpecRels
|
||||
/// <summary>
|
||||
/// 商品与规格值关系记录,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[SugarTable("tb_goods_spec_rel")]
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.GoodsManager.GoodsSpecs.SpecValues
|
||||
/// <summary>
|
||||
/// 商品规格值,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[SugarTable("tb_spec_value")]
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.GoodsManager.GoodsSpecs.Specs
|
||||
/// <summary>
|
||||
/// 商品规格组,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[SugarTable("tb_spec")]
|
||||
|
@ -3,13 +3,14 @@ using System.Collections.Generic;
|
||||
using SqlSugar;
|
||||
using OfficeOpenXml.Attributes;
|
||||
using Newtonsoft.Json;
|
||||
using ARW.Model.Dto.Business.GoodsManager.Goodss;
|
||||
|
||||
namespace ARW.Model.Models.Business.GoodsManager.Goodss
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[SugarTable("tb_goods")]
|
||||
@ -299,7 +300,20 @@ namespace ARW.Model.Models.Business.GoodsManager.Goodss
|
||||
|
||||
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public string GoodsServicesIds { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 商品规格
|
||||
/// </summary>
|
||||
public List<GoodsSpecDto> GoodsSpecList { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 商品sku列表
|
||||
/// </summary>
|
||||
public List<SkuDto> SkuList { get; set; }
|
||||
|
||||
}
|
||||
}
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.GoodsManager.ShopGoodsCategorys
|
||||
/// <summary>
|
||||
/// 店铺商品类目,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
[SugarTable("tb_shop_goods_category")]
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.LogisticsManage.DeliveryRules
|
||||
/// <summary>
|
||||
/// 配送模板区域及运费,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
[SugarTable("tb_delivery_rule")]
|
||||
|
@ -10,7 +10,7 @@ namespace ARW.Model.Models.Business.LogisticsManage.Deliverys
|
||||
/// <summary>
|
||||
/// 配送模板,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
[SugarTable("tb_delivery")]
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.LogisticsManage.LogisticsCompanys
|
||||
/// <summary>
|
||||
/// 物流公司,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
[SugarTable("tb_logistics_company")]
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.ShopManager.ShopAddresss
|
||||
/// <summary>
|
||||
/// 店铺地址,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
[SugarTable("tb_shop_address")]
|
||||
|
@ -9,7 +9,7 @@ namespace ARW.Model.Models.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺,数据实体对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
[SugarTable("tb_shop")]
|
||||
|
@ -10,7 +10,7 @@ namespace ARW.Model.Vo.Api.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 经营类目对象Api
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-13
|
||||
/// </summary>
|
||||
public class GoodsCategoryVoApi
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Api.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺展示对象Api
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
public class ShopVoApi
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-05
|
||||
/// </summary>
|
||||
public class CustomerVo
|
||||
|
@ -10,7 +10,7 @@ namespace ARW.Model.Vo.Business.GoodsManager.GoodsCategorys
|
||||
/// <summary>
|
||||
/// 商品类目展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
public class GoodsCategoryVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.GoodsManager.GoodsServicess.GoodsServicesRels
|
||||
/// <summary>
|
||||
/// 商品服务与承诺关系表展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public class GoodsServicesRelVo
|
||||
@ -20,14 +20,6 @@ namespace ARW.Model.Vo.Business.GoodsManager.GoodsServicess.GoodsServicesRels
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 描述 :
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long Guid { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 描述 :店铺guid
|
||||
/// </summary>
|
||||
@ -43,10 +35,9 @@ namespace ARW.Model.Vo.Business.GoodsManager.GoodsServicess.GoodsServicesRels
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 描述 :服务与承诺guid
|
||||
/// 描述 :服务与承诺id
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(ValueToStringConverter))]
|
||||
public long ServiceGuid { get; set; }
|
||||
public long ServiceId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.GoodsManager.GoodsServicess
|
||||
/// <summary>
|
||||
/// 商品服务与承诺展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public class GoodsServicesVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.GoodsManager.GoodsSpecs.GoodsSkus
|
||||
/// <summary>
|
||||
/// 商品规格展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class GoodsSkuVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.GoodsManager.GoodsSpecs.GoodsSpecRels
|
||||
/// <summary>
|
||||
/// 商品与规格值关系记录展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class GoodsSpecRelVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.GoodsManager.GoodsSpecs.SpecValues
|
||||
/// <summary>
|
||||
/// 商品规格值展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class SpecValueVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.GoodsManager.GoodsSpecs.Specs
|
||||
/// <summary>
|
||||
/// 商品规格组展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class SpecVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.GoodsManager.Goodss
|
||||
/// <summary>
|
||||
/// 商品展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public class GoodsVo
|
||||
|
@ -10,7 +10,7 @@ namespace ARW.Model.Vo.Business.GoodsManager.ShopGoodsCategorys
|
||||
/// <summary>
|
||||
/// 店铺商品类目展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
public class ShopGoodsCategoryVo
|
||||
|
@ -10,7 +10,7 @@ namespace ARW.Model.Vo.Business.LogisticsManage.DeliveryRules
|
||||
/// <summary>
|
||||
/// 配送模板区域及运费展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
public class DeliveryRuleVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.LogisticsManage.Deliverys
|
||||
/// <summary>
|
||||
/// 配送模板展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
public class DeliveryVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.LogisticsManage.LogisticsCompanys
|
||||
/// <summary>
|
||||
/// 物流公司展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public class LogisticsCompanyVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.ShopManager.ShopAddresss
|
||||
/// <summary>
|
||||
/// 店铺地址展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
public class ShopAddressVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 未绑定客户展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
public class CustomerWithOutBindVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
public class ShopVo
|
||||
@ -134,7 +134,7 @@ namespace ARW.Model.Vo.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺详情展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-015
|
||||
/// </summary>
|
||||
public class ShopDetailVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Model.Vo.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 未绑定用户展示对象
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
public class UserWithOutBindVo
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-05
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.GoodsManager.GoodsCategorys
|
||||
/// <summary>
|
||||
/// 商品类目仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.GoodsManager.GoodsServicess.GoodsServicesRels
|
||||
/// <summary>
|
||||
/// 商品服务与承诺关系表仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.GoodsManager.GoodsServicess
|
||||
/// <summary>
|
||||
/// 商品服务与承诺仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.GoodsManager.GoodsSpecs.GoodsSkus
|
||||
/// <summary>
|
||||
/// 商品规格仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.GoodsManager.GoodsSpecs.GoodsSpecRels
|
||||
/// <summary>
|
||||
/// 商品与规格值关系记录仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.GoodsManager.GoodsSpecs.SpecValues
|
||||
/// <summary>
|
||||
/// 商品规格值仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.GoodsManager.GoodsSpecs.Specs
|
||||
/// <summary>
|
||||
/// 商品规格组仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.GoodsManager.Goodss
|
||||
/// <summary>
|
||||
/// 商品仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.GoodsManager.ShopGoodsCategorys
|
||||
/// <summary>
|
||||
/// 店铺商品类目仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.LogisticsManage.DeliveryRules
|
||||
/// <summary>
|
||||
/// 配送模板区域及运费仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.LogisticsManage.Deliverys
|
||||
/// <summary>
|
||||
/// 配送模板仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.LogisticsManage.LogisticsCompanys
|
||||
/// <summary>
|
||||
/// 物流公司仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.ShopManager.ShopAddresss
|
||||
/// <summary>
|
||||
/// 店铺地址仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -8,7 +8,7 @@ namespace ARW.Repository.Business.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺仓储
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
[AppService(ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -17,7 +17,7 @@ namespace ARW.Service.Api.BusinessService.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户接口实现类Api
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-07
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(ICustomerServiceApi), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -23,7 +23,7 @@ namespace ARW.Service.Api.BusinessService.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺接口实现类Api
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IShopServiceApi), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -13,7 +13,7 @@ namespace ARW.Service.Api.IBusinessService.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户接口类Api
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-07
|
||||
/// </summary>
|
||||
public interface ICustomerServiceApi : IBaseService<Customer>
|
||||
|
@ -14,7 +14,7 @@ namespace ARW.Service.Api.IBusinessService.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺接口类Api
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
public interface IShopServiceApi : IBaseService<Shop>
|
||||
|
@ -20,7 +20,7 @@ namespace ARW.Service.Business.BusinessService.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-05
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(ICustomerService), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -20,7 +20,7 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsCategorys
|
||||
/// <summary>
|
||||
/// 商品类目接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IGoodsCategoryService), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -14,13 +14,15 @@ using ARW.Model.Models.Business.GoodsManager.GoodsServicess.GoodsServicesRels;
|
||||
using ARW.Model.Vo.Business.GoodsManager.GoodsServicess.GoodsServicesRels;
|
||||
using ARW.Repository.Business.GoodsManager.GoodsServicess.GoodsServicesRels;
|
||||
using ARW.Service.Business.IBusinessService.GoodsManager.GoodsServicess.GoodsServicesRels;
|
||||
using ARW.Model.Models.Business.LogisticsManage.DeliveryRules;
|
||||
using ARW.Repository.Business.LogisticsManage.DeliveryRules;
|
||||
|
||||
namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsServicess.GoodsServicesRels
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品服务与承诺关系表接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IGoodsServicesRelService), ServiceLifetime = LifeTime.Transient)]
|
||||
@ -47,43 +49,42 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsServicess.Goods
|
||||
var query = _GoodsServicesRelRepository
|
||||
.Queryable()
|
||||
.Where(predicate.ToExpression())
|
||||
.OrderBy(s => s.Create_time, OrderByType.Desc)
|
||||
.OrderBy(s => s.Id, OrderByType.Desc)
|
||||
.Select(s => new GoodsServicesRelVo
|
||||
{
|
||||
Id = s.Id,
|
||||
Guid = s.Guid,
|
||||
ShopGuid = s.ShopGuid,
|
||||
GoodsGuid = s.GoodsGuid,
|
||||
ServiceGuid = s.ServiceGuid,
|
||||
ServiceId = s.ServiceId,
|
||||
});
|
||||
|
||||
|
||||
return await query.ToPageAsync(parm);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加或修改商品服务与承诺关系表
|
||||
/// 新增商品服务与承诺关系
|
||||
/// </summary>
|
||||
public async Task<string> AddOrUpdateGoodsServicesRel(GoodsServicesRel model)
|
||||
/// <param name="goodsServicesRelList">商品服务与承诺关系列表</param>
|
||||
public async Task InsertGoodsServicesRelAsync(List<GoodsServicesRel> goodsServicesRelList)
|
||||
{
|
||||
if (model.Id != 0)
|
||||
{
|
||||
var response = await _GoodsServicesRelRepository.UpdateAsync(model);
|
||||
return "修改成功!";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
var response = await _GoodsServicesRelRepository.InsertReturnSnowflakeIdAsync(model);
|
||||
return "添加成功!";
|
||||
}
|
||||
await _GoodsServicesRelRepository.InsertRangeAsync(goodsServicesRelList);
|
||||
}
|
||||
|
||||
#region Excel处理
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 更新商品服务与承诺关系
|
||||
/// </summary>
|
||||
/// <param name="goodsServicesRelList">商品服务与承诺关系列表</param>
|
||||
/// <param name="goodsGuid">商品guid</param>
|
||||
/// <returns></returns>
|
||||
public async Task UpdateGoodsServicesRelAsync(List<GoodsServicesRel> goodsServicesRelList, long goodsGuid)
|
||||
{
|
||||
await _GoodsServicesRelRepository.DeleteAsync(s => s.GoodsGuid == goodsGuid);
|
||||
await _GoodsServicesRelRepository.InsertRangeAsync(goodsServicesRelList);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
@ -21,7 +21,7 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsServicess
|
||||
/// <summary>
|
||||
/// 商品服务与承诺接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IGoodsServicesService), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -20,7 +20,7 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsSpecs.GoodsSkus
|
||||
/// <summary>
|
||||
/// 商品规格接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IGoodsSkuService), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -14,13 +14,16 @@ using ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.GoodsSpecRel
|
||||
using ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.GoodsSpecRels;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsSpecs.GoodsSpecRels;
|
||||
using ARW.Model.Vo.Business.GoodsManager.GoodsSpecs.GoodsSpecRels;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsSpecs.SpecValues;
|
||||
using ARW.Repository.Business.GoodsManager.GoodsSpecs.SpecValues;
|
||||
using System.Diagnostics.Eventing.Reader;
|
||||
|
||||
namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsSpecs.GoodsSpecRels
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品与规格值关系记录接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IGoodsSpecRelService), ServiceLifetime = LifeTime.Transient)]
|
||||
@ -60,29 +63,27 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsSpecs.GoodsSpec
|
||||
return await query.ToPageAsync(parm);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加或修改商品与规格值关系记录
|
||||
/// 新增商品与规格值关系
|
||||
/// </summary>
|
||||
public async Task<string> AddOrUpdateGoodsSpecRel(GoodsSpecRel model)
|
||||
/// <param name="goodsSpecRelList">商品与规格值关系列表</param>
|
||||
public async Task InsertGoodsSpecRelAsync(List<GoodsSpecRel> goodsSpecRelList)
|
||||
{
|
||||
if (model.GoodsSpecRelId != 0)
|
||||
{
|
||||
var response = await _GoodsSpecRelRepository.UpdateAsync(model);
|
||||
return "修改成功!";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
var response = await _GoodsSpecRelRepository.InsertReturnSnowflakeIdAsync(model);
|
||||
return "添加成功!";
|
||||
}
|
||||
await _GoodsSpecRelRepository.InsertRangeAsync(goodsSpecRelList);
|
||||
}
|
||||
|
||||
#region Excel处理
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 更新商品与规格值关系
|
||||
/// </summary>
|
||||
/// <param name="goodsSpecRelList">商品与规格值关系列表</param>
|
||||
/// <returns></returns>
|
||||
public async Task UpdateGoodsSpecRelAsync(List<GoodsSpecRel> goodsSpecRelList, long goodsGuid)
|
||||
{
|
||||
await _GoodsSpecRelRepository.DeleteAsync(s => s.GoodsGuid == goodsGuid);
|
||||
await _GoodsSpecRelRepository.InsertRangeAsync(goodsSpecRelList);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
@ -14,13 +14,15 @@ using ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.SpecValues;
|
||||
using ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.SpecValues;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsSpecs.SpecValues;
|
||||
using ARW.Model.Vo.Business.GoodsManager.GoodsSpecs.SpecValues;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsSpecs.Specs;
|
||||
using ARW.Repository.Business.GoodsManager.GoodsSpecs.Specs;
|
||||
|
||||
namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsSpecs.SpecValues
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品规格值接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(ISpecValueService), ServiceLifetime = LifeTime.Transient)]
|
||||
@ -59,29 +61,26 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsSpecs.SpecValue
|
||||
return await query.ToPageAsync(parm);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加或修改商品规格值
|
||||
/// 新增规格值
|
||||
/// </summary>
|
||||
public async Task<string> AddOrUpdateSpecValue(SpecValue model)
|
||||
/// <param name="sepcValueList">规格值列表</param>
|
||||
public async Task InsertSpecValueAsync(List<SpecValue> sepcValueList)
|
||||
{
|
||||
if (model.SpecValueId != 0)
|
||||
{
|
||||
var response = await _SpecValueRepository.UpdateAsync(model);
|
||||
return "修改成功!";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
var response = await _SpecValueRepository.InsertReturnSnowflakeIdAsync(model);
|
||||
return "添加成功!";
|
||||
}
|
||||
await _SpecValueRepository.InsertRangeAsync(sepcValueList);
|
||||
}
|
||||
|
||||
#region Excel处理
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 更新规格值
|
||||
/// </summary>
|
||||
/// <param name="sepcValueList">规格值列表</param>
|
||||
/// <returns></returns>
|
||||
public async Task UpdateSpecValueAsync(List<SpecValue> sepcValueList)
|
||||
{
|
||||
await _SpecValueRepository.UpdateRangeAsync(sepcValueList);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
@ -20,7 +20,7 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsSpecs.Specs
|
||||
/// <summary>
|
||||
/// 商品规格组接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(ISpecService), ServiceLifetime = LifeTime.Transient)]
|
||||
@ -59,28 +59,24 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.GoodsSpecs.Specs
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加或修改商品规格组
|
||||
/// 新增规格组
|
||||
/// </summary>
|
||||
public async Task<string> AddOrUpdateSpec(Spec model)
|
||||
/// <param name="sepcList">规格组列表</param>
|
||||
public async Task InsertSpecAsync(List<Spec> sepcList)
|
||||
{
|
||||
if (model.SpecId != 0)
|
||||
{
|
||||
var response = await _SpecRepository.UpdateAsync(model);
|
||||
return "修改成功!";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
var response = await _SpecRepository.InsertReturnSnowflakeIdAsync(model);
|
||||
return "添加成功!";
|
||||
}
|
||||
await _SpecRepository.InsertRangeAsync(sepcList);
|
||||
}
|
||||
|
||||
#region Excel处理
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 更新规格组
|
||||
/// </summary>
|
||||
/// <param name="sepcList">规格组列表</param>
|
||||
/// <returns></returns>
|
||||
public async Task UpdateSpecAsync(List<Spec> sepcList)
|
||||
{
|
||||
await _SpecRepository.UpdateRangeAsync(sepcList);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
@ -15,23 +15,43 @@ using ARW.Model.Dto.Business.GoodsManager.Goodss;
|
||||
using ARW.Model.Models.Business.GoodsManager.Goodss;
|
||||
using ARW.Model.Vo.Business.GoodsManager.Goodss;
|
||||
using ARW.Model.Models.Business.ShopManager.Shops;
|
||||
using ARW.Repository.Business.GoodsManager.GoodsServicess;
|
||||
using ARW.Repository.Business.GoodsManager.GoodsServicess.GoodsServicesRels;
|
||||
using ARW.Service.Business.IBusinessService.GoodsManager.GoodsServicess.GoodsServicesRels;
|
||||
using AngleSharp.Html;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsServicess.GoodsServicesRels;
|
||||
using ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.Specs;
|
||||
using ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.SpecValues;
|
||||
using ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.GoodsSpecRels;
|
||||
using Senparc.Weixin.MP.AdvancedAPIs.Semantic;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsSpecs.Specs;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsSpecs.SpecValues;
|
||||
|
||||
namespace ARW.Service.Business.BusinessService.GoodsManager.Goodss
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IGoodsService), ServiceLifetime = LifeTime.Transient)]
|
||||
public class GoodsServiceImpl : BaseService<Goods>, IGoodsService
|
||||
{
|
||||
private readonly GoodsRepository _GoodsRepository;
|
||||
private readonly IGoodsServicesRelService _GoodsServicesRelIService;
|
||||
private readonly ISpecService _SepcIService;
|
||||
private readonly ISpecValueService _SpecValueIService;
|
||||
private readonly IGoodsSpecRelService _GoodsSpecRelService;
|
||||
|
||||
public GoodsServiceImpl(GoodsRepository GoodsRepository)
|
||||
|
||||
public GoodsServiceImpl(GoodsRepository GoodsRepository, IGoodsServicesRelService goodsServicesRelIService, ISpecService sepcIService, ISpecValueService specValueIService, IGoodsSpecRelService goodsSpecRelService)
|
||||
{
|
||||
this._GoodsRepository = GoodsRepository;
|
||||
_GoodsServicesRelIService = goodsServicesRelIService;
|
||||
_SepcIService = sepcIService;
|
||||
_SpecValueIService = specValueIService;
|
||||
_GoodsSpecRelService = goodsSpecRelService;
|
||||
}
|
||||
|
||||
#region 业务逻辑代码
|
||||
@ -98,6 +118,7 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.Goodss
|
||||
/// </summary>
|
||||
public async Task<string> AddOrUpdateGoods(Goods model)
|
||||
{
|
||||
|
||||
if (model.GoodsId != 0)
|
||||
{
|
||||
var response = await _GoodsRepository.UpdateAsync(model);
|
||||
@ -105,8 +126,11 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.Goodss
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
await HandleBeforeAdd(model);
|
||||
var response = await _GoodsRepository.InsertReturnSnowflakeIdAsync(model);
|
||||
model.GoodsGuid = response;
|
||||
await HandleAfterAdd(model);
|
||||
|
||||
return "添加成功!";
|
||||
}
|
||||
}
|
||||
@ -196,6 +220,100 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.Goodss
|
||||
#endregion
|
||||
|
||||
|
||||
#region 商品格式处理
|
||||
|
||||
/// <summary>
|
||||
/// 商品添加前处理处理
|
||||
/// </summary>
|
||||
/// <param name="model">商品Model</param>
|
||||
/// <returns></returns>
|
||||
public async Task<Goods> HandleBeforeAdd(Goods model)
|
||||
{
|
||||
// 单规格(最高价格 最高划线价格 = 最低价格 最低划线价格)
|
||||
model = HandleSingleSpec(model);
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 商品添加后处理
|
||||
/// </summary>
|
||||
/// <param name="model">商品Model</param>
|
||||
/// <returns></returns>
|
||||
public async Task HandleAfterAdd(Goods model)
|
||||
{
|
||||
// 服务与承诺
|
||||
if (!string.IsNullOrEmpty(model.GoodsServicesIds))
|
||||
{
|
||||
var servicesIds = model.GoodsServicesIds.Split(',');
|
||||
var servicesList = new List<GoodsServicesRel>();
|
||||
foreach (var id in servicesIds)
|
||||
{
|
||||
//var service = await _GoodsServicesRepository.GetFirstAsync(s => s.GoodsServicesId == Convert.ToInt32(id));
|
||||
var service = new GoodsServicesRel
|
||||
{
|
||||
ShopGuid = model.ShopGuid,
|
||||
GoodsGuid = model.GoodsGuid,
|
||||
ServiceId = Convert.ToInt32(id)
|
||||
};
|
||||
servicesList.Add(service);
|
||||
}
|
||||
await _GoodsServicesRelIService.InsertGoodsServicesRelAsync(servicesList);
|
||||
}
|
||||
|
||||
// Sku列表
|
||||
if (model.GoodsSpecType == "2")
|
||||
{
|
||||
|
||||
// 规格组和规格值
|
||||
foreach (var item in model.GoodsSpecList)
|
||||
{
|
||||
var spec = new Spec
|
||||
{
|
||||
SpecName = item.SpecName
|
||||
};
|
||||
var specId = await _SepcIService.InsertReturnIdentityAsync(spec);
|
||||
foreach (var i in item.Props)
|
||||
{
|
||||
var specValue = new SpecValue
|
||||
{
|
||||
SpecId = specId,
|
||||
SpecValueName = i.SpecValueName,
|
||||
};
|
||||
await _SpecValueIService.InsertReturnIdentityAsync(specValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 商品单规格处理
|
||||
/// </summary>
|
||||
/// <param name="model">商品Model</param>
|
||||
/// <returns></returns>
|
||||
public Goods HandleSingleSpec(Goods model)
|
||||
{
|
||||
// 单规格
|
||||
if (model.GoodsSpecType == "1")
|
||||
{
|
||||
// 价格
|
||||
model.GoodsPriceLowest = model.GoodsPriceHighest;
|
||||
|
||||
// 划线价格
|
||||
if (model.GoodsDashedPriceHighest != 0)
|
||||
{
|
||||
model.GoodsDashedPriceLowest = model.GoodsDashedPriceHighest;
|
||||
}
|
||||
}
|
||||
|
||||
return model;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -25,7 +25,7 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.ShopGoodsCategorys
|
||||
/// <summary>
|
||||
/// 店铺商品类目接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IShopGoodsCategoryService), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -32,7 +32,7 @@ namespace ARW.Service.Business.BusinessService.LogisticsManage.DeliveryRules
|
||||
/// <summary>
|
||||
/// 配送模板区域及运费接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IDeliveryRuleService), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -24,7 +24,7 @@ namespace ARW.Service.Business.BusinessService.LogisticsManage.Deliverys
|
||||
/// <summary>
|
||||
/// 配送模板接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IDeliveryService), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -20,7 +20,7 @@ namespace ARW.Service.Business.BusinessService.LogisticsManage.LogisticsCompanys
|
||||
/// <summary>
|
||||
/// 物流公司接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(ILogisticsCompanyService), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -23,7 +23,7 @@ namespace ARW.Service.Business.BusinessService.ShopManager.ShopAddresss
|
||||
/// <summary>
|
||||
/// 店铺地址接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IShopAddressService), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -33,7 +33,7 @@ namespace ARW.Service.Business.BusinessService.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺接口实现类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IShopService), ServiceLifetime = LifeTime.Transient)]
|
||||
|
@ -13,7 +13,7 @@ namespace ARW.Service.Business.IBusinessService.Custom.Customers
|
||||
/// <summary>
|
||||
/// 小程序客户接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-05
|
||||
/// </summary>
|
||||
public interface ICustomerService : IBaseService<Customer>
|
||||
|
@ -13,7 +13,7 @@ namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsCategorys
|
||||
/// <summary>
|
||||
/// 商品类目接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-12
|
||||
/// </summary>
|
||||
public interface IGoodsCategoryService : IBaseService<GoodsCategory>
|
||||
|
@ -1,7 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ARW.Model;
|
||||
using ARW.Model.Dto.Business.GoodsManager.GoodsServicess.GoodsServicesRels;
|
||||
@ -13,7 +10,7 @@ namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsServicess.Good
|
||||
/// <summary>
|
||||
/// 商品服务与承诺关系表接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public interface IGoodsServicesRelService : IBaseService<GoodsServicesRel>
|
||||
@ -27,14 +24,19 @@ namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsServicess.Good
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加或修改商品服务与承诺关系表
|
||||
/// 新增商品服务与承诺关系
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <param name="goodsServicesRelList">商品服务与承诺关系列表</param>
|
||||
Task InsertGoodsServicesRelAsync(List<GoodsServicesRel> goodsServicesRelList);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新商品服务与承诺关系
|
||||
/// </summary>
|
||||
/// <param name="goodsServicesRelList">商品服务与承诺关系列表</param>
|
||||
/// <param name="goodsGuid">商品guid</param>
|
||||
/// <returns></returns>
|
||||
Task<string> AddOrUpdateGoodsServicesRel(GoodsServicesRel parm);
|
||||
|
||||
|
||||
|
||||
Task UpdateGoodsServicesRelAsync(List<GoodsServicesRel> goodsServicesRelList, long goodsGuid);
|
||||
|
||||
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsServicess
|
||||
/// <summary>
|
||||
/// 商品服务与承诺接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public interface IGoodsServicesService : IBaseService<GoodsServices>
|
||||
|
@ -13,7 +13,7 @@ namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.GoodsSku
|
||||
/// <summary>
|
||||
/// 商品规格接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public interface IGoodsSkuService : IBaseService<GoodsSku>
|
||||
|
@ -7,13 +7,14 @@ using ARW.Model;
|
||||
using ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.GoodsSpecRels;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsSpecs.GoodsSpecRels;
|
||||
using ARW.Model.Vo.Business.GoodsManager.GoodsSpecs.GoodsSpecRels;
|
||||
using ARW.Repository.Business.GoodsManager.GoodsSpecs.GoodsSpecRels;
|
||||
|
||||
namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.GoodsSpecRels
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品与规格值关系记录接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public interface IGoodsSpecRelService : IBaseService<GoodsSpecRel>
|
||||
@ -27,13 +28,18 @@ namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.GoodsSpe
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加或修改商品与规格值关系记录
|
||||
/// 新增商品与规格值关系
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <param name="goodsSpecRelList">商品与规格值关系列表</param>
|
||||
Task InsertGoodsSpecRelAsync(List<GoodsSpecRel> goodsSpecRelList);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新商品与规格值关系
|
||||
/// </summary>
|
||||
/// <param name="goodsSpecRelList">商品与规格值关系列表</param>
|
||||
/// <returns></returns>
|
||||
Task<string> AddOrUpdateGoodsSpecRel(GoodsSpecRel parm);
|
||||
|
||||
|
||||
Task UpdateGoodsSpecRelAsync(List<GoodsSpecRel> goodsSpecRelList, long goodsGuid);
|
||||
|
||||
|
||||
|
||||
|
@ -5,15 +5,17 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ARW.Model;
|
||||
using ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.SpecValues;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsSpecs.Specs;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsSpecs.SpecValues;
|
||||
using ARW.Model.Vo.Business.GoodsManager.GoodsSpecs.SpecValues;
|
||||
using ARW.Repository.Business.GoodsManager.GoodsSpecs.SpecValues;
|
||||
|
||||
namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.SpecValues
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品规格值接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public interface ISpecValueService : IBaseService<SpecValue>
|
||||
@ -27,13 +29,18 @@ namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.SpecValu
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加或修改商品规格值
|
||||
/// 新增规格值
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <param name="sepcValueList">规格值列表</param>
|
||||
Task InsertSpecValueAsync(List<SpecValue> sepcValueList);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新规格值
|
||||
/// </summary>
|
||||
/// <param name="sepcValueList">规格值列表</param>
|
||||
/// <returns></returns>
|
||||
Task<string> AddOrUpdateSpecValue(SpecValue parm);
|
||||
|
||||
|
||||
Task UpdateSpecValueAsync(List<SpecValue> sepcValueList);
|
||||
|
||||
|
||||
|
||||
|
@ -7,13 +7,14 @@ using ARW.Model;
|
||||
using ARW.Model.Dto.Business.GoodsManager.GoodsSpecs.Specs;
|
||||
using ARW.Model.Models.Business.GoodsManager.GoodsSpecs.Specs;
|
||||
using ARW.Model.Vo.Business.GoodsManager.GoodsSpecs.Specs;
|
||||
using ARW.Repository.Business.GoodsManager.GoodsSpecs.Specs;
|
||||
|
||||
namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.Specs
|
||||
{
|
||||
/// <summary>
|
||||
/// 商品规格组接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public interface ISpecService : IBaseService<Spec>
|
||||
@ -27,14 +28,18 @@ namespace ARW.Service.Business.IBusinessService.GoodsManager.GoodsSpecs.Specs
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加或修改商品规格组
|
||||
/// 新增规格组
|
||||
/// </summary>
|
||||
/// <param name="parm"></param>
|
||||
/// <param name="sepcList">规格组列表</param>
|
||||
Task InsertSpecAsync(List<Spec> sepcList);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 更新规格组
|
||||
/// </summary>
|
||||
/// <param name="sepcList">规格组列表</param>
|
||||
/// <returns></returns>
|
||||
Task<string> AddOrUpdateSpec(Spec parm);
|
||||
|
||||
|
||||
|
||||
Task UpdateSpecAsync(List<Spec> sepcList);
|
||||
|
||||
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ namespace ARW.Service.Business.IBusinessService.GoodsManager.Goodss
|
||||
/// <summary>
|
||||
/// 商品接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-19
|
||||
/// </summary>
|
||||
public interface IGoodsService : IBaseService<Goods>
|
||||
|
@ -14,7 +14,7 @@ namespace ARW.Service.Business.IBusinessService.GoodsManager.ShopGoodsCategorys
|
||||
/// <summary>
|
||||
/// 店铺商品类目接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
public interface IShopGoodsCategoryService : IBaseService<ShopGoodsCategory>
|
||||
|
@ -13,7 +13,7 @@ namespace ARW.Service.Business.IBusinessService.LogisticsManage.DeliveryRules
|
||||
/// <summary>
|
||||
/// 配送模板区域及运费接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
public interface IDeliveryRuleService : IBaseService<DeliveryRule>
|
||||
|
@ -13,7 +13,7 @@ namespace ARW.Service.Business.IBusinessService.LogisticsManage.Deliverys
|
||||
/// <summary>
|
||||
/// 配送模板接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-16
|
||||
/// </summary>
|
||||
public interface IDeliveryService : IBaseService<Delivery>
|
||||
|
@ -13,7 +13,7 @@ namespace ARW.Service.Business.IBusinessService.LogisticsManage.LogisticsCompany
|
||||
/// <summary>
|
||||
/// 物流公司接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-18
|
||||
/// </summary>
|
||||
public interface ILogisticsCompanyService : IBaseService<LogisticsCompany>
|
||||
|
@ -13,7 +13,7 @@ namespace ARW.Service.Business.IBusinessService.ShopManager.ShopAddresss
|
||||
/// <summary>
|
||||
/// 店铺地址接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-15
|
||||
/// </summary>
|
||||
public interface IShopAddressService : IBaseService<ShopAddress>
|
||||
|
@ -15,7 +15,7 @@ namespace ARW.Service.Business.IBusinessService.ShopManager.Shops
|
||||
/// <summary>
|
||||
/// 店铺接口类
|
||||
///
|
||||
/// @author 黎文豪
|
||||
/// @author lwh
|
||||
/// @date 2023-06-09
|
||||
/// </summary>
|
||||
public interface IShopService : IBaseService<Shop>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user