This commit is contained in:
AERWEN\26795 2023-10-25 22:32:17 +08:00
parent b965bdfc97
commit 006befd766
6 changed files with 28 additions and 10 deletions

View File

@ -28,6 +28,8 @@ namespace ARW.Model.Dto.Business.GoodsManager.ShopGoodsCategorys
[Required(ErrorMessage = "名称不能为空")]
public string ShopGoodsCategoryName { get; set; }
public string ShopGoodsCategoryImg { get; set; }
[Required(ErrorMessage = "显示状态不能为空")]
public int ShopGoodsCategoryDisplayStatus { get; set; }

View File

@ -74,6 +74,15 @@ namespace ARW.Model.Models.Business.GoodsManager.ShopGoodsCategorys
public string ShopGoodsCategoryName { get; set; }
/// <summary>
/// 描述 :图标
/// 空值 : false
/// </summary>
[EpplusTableColumn(Header = "图标")]
[SugarColumn(ColumnName = "shop_goods_category_img")]
public string ShopGoodsCategoryImg { get; set; }
/// <summary>
/// 描述 :显示状态
/// 空值 : false

View File

@ -77,6 +77,12 @@ namespace ARW.Model.Vo.Business.GoodsManager.ShopGoodsCategorys
public string ShopGoodsCategoryName { get; set; }
/// <summary>
/// 描述 :图标
/// </summary>
[EpplusTableColumn(Header = "商品类目图标")]
public string ShopGoodsCategoryImg { get; set; }
/// <summary>
/// 描述 :显示状态
/// </summary>

View File

@ -74,6 +74,7 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.ShopGoodsCategorys
ShopGoodsCategoryDisplayStatus = s.ShopGoodsCategoryDisplayStatus,
ShopGoodsCategorySort = s.ShopGoodsCategorySort,
ParentName = c.ShopGoodsCategoryName,
ShopGoodsCategoryImg = s.ShopGoodsCategoryImg
});
return await query.ToTreeAsync(it => it.Children, it => it.ShopGoodsCategoryParentGuid, 0);
@ -110,6 +111,7 @@ namespace ARW.Service.Business.BusinessService.GoodsManager.ShopGoodsCategorys
ShopGoodsCategoryDisplayStatus = s.ShopGoodsCategoryDisplayStatus,
ShopGoodsCategorySort = s.ShopGoodsCategorySort,
ParentName = c.ShopGoodsCategoryName,
ShopGoodsCategoryImg = s.ShopGoodsCategoryImg
});

View File

@ -82,14 +82,13 @@ namespace ARW.Service.Business.BusinessService.ShopManager.Shops
predicate = predicate.AndIF(parm.ShopAuditStatus != null, s => s.ShopAuditStatus == parm.ShopAuditStatus);
var query = _ShopRepository
.Queryable()
.LeftJoin<SysUser>((s, c) => s.ShopUserId == c.UserId)
.LeftJoin<Customer>((s, c, d) => s.ShopCustomerGuid == d.CustomerGuid)
.LeftJoin<GoodsCategory>((s, c, d, f) => s.ShopBusinessCategoryGuid == f.GoodsCategoryGuid)
//.LeftJoin<SysUser>((s, c) => s.ShopUserId == c.UserId)
.LeftJoin<Customer>((s, d) => s.ShopCustomerGuid == d.CustomerGuid)
.LeftJoin<GoodsCategory>((s, d, f) => s.ShopBusinessCategoryGuid == f.GoodsCategoryGuid)
.Where(predicate.ToExpression())
.OrderBy(s => s.ShopSort, OrderByType.Asc)
.Select((s, c, d, f) => new ShopVo
.Select((s, d, f) => new ShopVo
{
UserName = c.UserName,
CustomerNickname = d.CustomerNickname,
ShopBusinessCategoryName = f.GoodsCategoryName,
ShopId = s.ShopId,

View File

@ -7,7 +7,7 @@
}
},
"ConnectionStrings": {
"conn_db": "server=47.242.159.172;Database=shop_template;Uid=shop_template;Pwd=tKFJjWwL2kxMYtJK;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;",
"conn_db": "server=47.242.159.172;Database=micro_mall_demo;Uid=micro_mall_demo;Pwd=MC6brabBGEWrTDZZ;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;",
//"conn_db": "server=127.0.0.1;Database=shop;Uid=root;Pwd=root;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;",
"conn_db_type": "8" // MySql = 0, SqlServer = 1
},
@ -41,13 +41,13 @@
"templateCode": "SMS_154950909"
},
"gen": {
"conn": "server=47.242.159.172;Database=shop_template;Uid=shop_template;Pwd=tKFJjWwL2kxMYtJK;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;",
//"conn": "server=127.0.0.1;Database= shop_template;Uid=root;Pwd=root;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;",
"conn": "server=47.242.159.172;Database=micro_mall_demo;Uid=micro_mall_demo;Pwd=MC6brabBGEWrTDZZ;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;",
//"conn": "server=127.0.0.1;Database= micro_mall_demo;Uid=root;Pwd=root;SslMode=none;CharSet=utf8mb4;AllowLoadLocalInfile=true;AllowUserVariables=true;",
"dbType": 8, //MySql = 0, SqlServer = 1
"autoPre": true, //
"author": "admin",
"tablePrefix": "tb_", //"表前缀(生成类名不会包含表前缀,多个用逗号分隔)",
"vuePath": "D:\\Programming\\Net\\Aerwen\\template\\shop\\shop_back" //egD:\Work\ARWAdmin-Vue3
"vuePath": "D:\\.Net\\Aerwen\\micro_mall\\micro_mall_back" //egD:\Work\ARWAdmin-Vue3
},
//
"MailOptions": {
@ -154,7 +154,7 @@
"TenPayV3_MchId": "1645875842", //
"TenPayV3_SubMchId": "", //
"TenPayV3_Key": "", // () Key
"TenPayV3_CertPath": "D:\\.Net\\Aerwen\\shop_template\\wecaht_information\\cert\\apiclient_cert.p12", //D:\\cert\\apiclient_cert.p12
"TenPayV3_CertPath": "D:\\.Net\\Aerwen\\micro_mall_api\\wecaht_information\\cert\\apiclient_cert.p12", //D:\\cert\\apiclient_cert.p12
"TenPayV3_CertSecret": "1645875842", // MchId
"TenPayV3_TenpayNotify": "http://shop.api.aerwen.net/api/WxPay/Notify", //
"TenPayV3_RefundNotify": "http://shop.api.aerwen.net/api/WxPay/refundNotifyUrl", // 退