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
293b631f
Commit
293b631f
authored
May 18, 2020
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
c0eea1f7
46b7aa52
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
4166 additions
and
286 deletions
+4166
-286
RB_Goods_Order.cs
Mall.Model/Entity/Product/RB_Goods_Order.cs
+1
-1
RB_Goods_OrderAfterSale.cs
Mall.Model/Entity/Product/RB_Goods_OrderAfterSale.cs
+182
-0
RB_Goods_OrderAfterSaleLog.cs
Mall.Model/Entity/Product/RB_Goods_OrderAfterSaleLog.cs
+74
-0
RB_Goods_OrderExpress.cs
Mall.Model/Entity/Product/RB_Goods_OrderExpress.cs
+4
-0
RB_Article.cs
Mall.Model/Entity/User/RB_Article.cs
+97
-0
RB_Emp_Config.cs
Mall.Model/Entity/User/RB_Emp_Config.cs
+73
-0
RB_Employee.cs
Mall.Model/Entity/User/RB_Employee.cs
+87
-0
RB_Role.cs
Mall.Model/Entity/User/RB_Role.cs
+80
-0
RB_Stores.cs
Mall.Model/Entity/User/RB_Stores.cs
+160
-0
RB_Topic_Type.cs
Mall.Model/Entity/User/RB_Topic_Type.cs
+88
-0
RB_Video.cs
Mall.Model/Entity/User/RB_Video.cs
+111
-0
RB_Goods_OrderAfterSaleLog_Extend.cs
...Model/Extend/Product/RB_Goods_OrderAfterSaleLog_Extend.cs
+18
-0
RB_Goods_OrderAfterSale_Extend.cs
Mall.Model/Extend/Product/RB_Goods_OrderAfterSale_Extend.cs
+49
-0
RB_Goods_Order_Extend.cs
Mall.Model/Extend/Product/RB_Goods_Order_Extend.cs
+11
-0
RB_Article_Extend.cs
Mall.Model/Extend/User/RB_Article_Extend.cs
+18
-0
RB_Emp_Config_Extend.cs
Mall.Model/Extend/User/RB_Emp_Config_Extend.cs
+18
-0
RB_Employee_Extend.cs
Mall.Model/Extend/User/RB_Employee_Extend.cs
+18
-0
RB_Role_Extend.cs
Mall.Model/Extend/User/RB_Role_Extend.cs
+17
-0
RB_Stores_Extend.cs
Mall.Model/Extend/User/RB_Stores_Extend.cs
+17
-0
RB_Topic_Type_Extend.cs
Mall.Model/Extend/User/RB_Topic_Type_Extend.cs
+18
-0
RB_Video_Extend.cs
Mall.Model/Extend/User/RB_Video_Extend.cs
+18
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+939
-270
ContentModule.cs
Mall.Module.User/ContentModule.cs
+398
-0
EmployeeModule.cs
Mall.Module.User/EmployeeModule.cs
+233
-0
RB_Goods_OrderAfterSaleLogRepository.cs
...epository/Product/RB_Goods_OrderAfterSaleLogRepository.cs
+46
-0
RB_Goods_OrderAfterSaleRepository.cs
Mall.Repository/Product/RB_Goods_OrderAfterSaleRepository.cs
+116
-0
RB_Goods_OrderRepository.cs
Mall.Repository/Product/RB_Goods_OrderRepository.cs
+4
-0
RB_ArticleRepository.cs
Mall.Repository/User/RB_ArticleRepository.cs
+76
-0
RB_Emp_ConfigRepository.cs
Mall.Repository/User/RB_Emp_ConfigRepository.cs
+39
-0
RB_EmployeeRepository.cs
Mall.Repository/User/RB_EmployeeRepository.cs
+75
-0
RB_RoleRepository.cs
Mall.Repository/User/RB_RoleRepository.cs
+75
-0
RB_StoresRepository.cs
Mall.Repository/User/RB_StoresRepository.cs
+76
-0
RB_Topic_TypeRepository.cs
Mall.Repository/User/RB_Topic_TypeRepository.cs
+76
-0
RB_VideoRepository.cs
Mall.Repository/User/RB_VideoRepository.cs
+76
-0
AppletOrderController.cs
Mall.WebApi/Controllers/Product/AppletOrderController.cs
+161
-10
OrderController.cs
Mall.WebApi/Controllers/Product/OrderController.cs
+68
-5
EmployeeController.cs
Mall.WebApi/Controllers/User/EmployeeController.cs
+202
-0
MContentController.cs
Mall.WebApi/Controllers/User/MContentController.cs
+347
-0
No files found.
Mall.Model/Entity/Product/RB_Goods_Order.cs
View file @
293b631f
...
...
@@ -178,7 +178,7 @@ namespace Mall.Model.Entity.Product
/// <summary>
/// 收货地址
/// </summary>
public
string
Sh
i
ppingAddress
public
string
Sh
o
ppingAddress
{
get
;
set
;
...
...
Mall.Model/Entity/Product/RB_Goods_OrderAfterSale.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.Product
{
/// <summary>
/// 商品订单售后表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Goods_OrderAfterSale
{
/// <summary>
/// ReOrderId
/// </summary>
public
int
ReOrderId
{
get
;
set
;
}
/// <summary>
/// 用户id
/// </summary>
public
int
?
UserId
{
get
;
set
;
}
/// <summary>
/// 订单id
/// </summary>
public
int
?
OrderId
{
get
;
set
;
}
/// <summary>
/// 订单明细id
/// </summary>
public
int
?
OrderDetialId
{
get
;
set
;
}
/// <summary>
/// 售后订单号
/// </summary>
public
string
ReOrderNo
{
get
;
set
;
}
/// <summary>
/// 类型 1退货退款 2换货
/// </summary>
public
int
?
Type
{
get
;
set
;
}
/// <summary>
/// 原因
/// </summary>
public
string
Remark
{
get
;
set
;
}
/// <summary>
/// 退货数量
/// </summary>
public
int
?
ReNumber
{
get
;
set
;
}
/// <summary>
/// 客人付款金额
/// </summary>
public
decimal
?
Income
{
get
;
set
;
}
/// <summary>
/// 退款金额
/// </summary>
public
decimal
?
Refund
{
get
;
set
;
}
/// <summary>
/// 实际退款金额
/// </summary>
public
decimal
?
RefundActual
{
get
;
set
;
}
/// <summary>
/// 凭证图片 json格式
/// </summary>
public
string
Voucher
{
get
;
set
;
}
/// <summary>
/// 售后状态 1待审核 2待买家发货 3已发货待商家处理(待卖家收货) 4待卖家退款 5已完成 6已拒绝
/// </summary>
public
int
?
ReOrderStatus
{
get
;
set
;
}
/// <summary>
/// 商家收货地址id
/// </summary>
public
int
?
DeliveryId
{
get
;
set
;
}
/// <summary>
/// 客人退货物流id
/// </summary>
public
int
?
ReExpressId
{
get
;
set
;
}
/// <summary>
/// 客人退货快递单号
/// </summary>
public
string
ReExpressNumber
{
get
;
set
;
}
/// <summary>
/// 同意/拒绝时间
/// </summary>
public
DateTime
?
AuditTime
{
get
;
set
;
}
/// <summary>
/// 完成时间
/// </summary>
public
DateTime
?
FinishTime
{
get
;
set
;
}
/// <summary>
/// 删除状态
/// </summary>
public
int
?
Status
{
get
;
set
;
}
/// <summary>
/// 商户号
/// </summary>
public
int
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序id
/// </summary>
public
int
MallBaseId
{
get
;
set
;
}
/// <summary>
/// CreateDate
/// </summary>
public
DateTime
?
CreateDate
{
get
;
set
;
}
}
}
Mall.Model/Entity/Product/RB_Goods_OrderAfterSaleLog.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.Product
{
/// <summary>
/// 商品订单售后操作流程表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Goods_OrderAfterSaleLog
{
/// <summary>
/// Id
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 售后订单id
/// </summary>
public
int
?
ReOrderId
{
get
;
set
;
}
/// <summary>
/// 类型 1买家 2卖家
/// </summary>
public
int
?
Type
{
get
;
set
;
}
/// <summary>
/// 内容
/// </summary>
public
string
Content
{
get
;
set
;
}
/// <summary>
/// 商户号
/// </summary>
public
int
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序id
/// </summary>
public
int
MallBaseId
{
get
;
set
;
}
/// <summary>
/// CreateDate
/// </summary>
public
DateTime
?
CreateDate
{
get
;
set
;
}
}
}
Mall.Model/Entity/Product/RB_Goods_OrderExpress.cs
View file @
293b631f
...
...
@@ -94,5 +94,9 @@ namespace Mall.Model.Entity.Product
get
;
set
;
}
/// <summary>
/// 换货时 售后订单id
/// </summary>
public
int
?
AfterSaleOrderId
{
get
;
set
;
}
}
}
Mall.Model/Entity/User/RB_Article.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 文章表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Article
{
/// <summary>
/// 文章编号
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 文章标题
/// </summary>
public
string
Title
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
int
?
SortNum
{
get
;
set
;
}
/// <summary>
/// 禁用状态(0-禁用,1-启用)
/// </summary>
public
int
?
IsDisable
{
get
;
set
;
}
/// <summary>
/// 文章内容
/// </summary>
public
string
Content
{
get
;
set
;
}
/// <summary>
/// 商户号Id
/// </summary>
public
int
?
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序Id
/// </summary>
public
int
?
MallBaseId
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
?
CreateDate
{
get
;
set
;
}
/// <summary>
/// 删除状态
/// </summary>
public
int
?
Status
{
get
;
set
;
}
}
}
Mall.Model/Entity/User/RB_Emp_Config.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 员工基础设置表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Emp_Config
{
/// <summary>
/// 配置编号
/// </summary>
public
int
ConfigId
{
get
;
set
;
}
/// <summary>
/// 修改密码状态(0-不能修改,1-可以修改)
/// </summary>
public
int
?
IsUpdatePwd
{
get
;
set
;
}
/// <summary>
/// 员工页面LOGO
/// </summary>
public
string
Logo
{
get
;
set
;
}
/// <summary>
/// 员工页面版权信息
/// </summary>
public
string
Copyright
{
get
;
set
;
}
/// <summary>
/// 员工页面版权链接
/// </summary>
public
string
CopyrightLink
{
get
;
set
;
}
/// <summary>
/// 商户号Id
/// </summary>
public
int
?
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序Id
/// </summary>
public
int
?
MallBaseId
{
get
;
set
;
}
}
}
Mall.Model/Entity/User/RB_Employee.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 员工基础设置表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Employee
{
/// <summary>
/// 员工编号
/// </summary>
public
int
EmpId
{
get
;
set
;
}
/// <summary>
/// 员工账号
/// </summary>
public
string
EmpAccount
{
get
;
set
;
}
/// <summary>
/// 员工密码
/// </summary>
public
string
EmpPwd
{
get
;
set
;
}
/// <summary>
/// 员工姓名
/// </summary>
public
string
EmpName
{
get
;
set
;
}
/// <summary>
/// 角色Id
/// </summary>
public
string
RoleAuth
{
get
;
set
;
}
/// <summary>
/// 商户号Id
/// </summary>
public
int
?
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序Id
/// </summary>
public
int
?
MallBaseId
{
get
;
set
;
}
/// <summary>
/// 状态(0-正常,1-删除)
/// </summary>
public
int
?
Status
{
get
;
set
;
}
}
}
Mall.Model/Entity/User/RB_Role.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 角色表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Role
{
/// <summary>
/// 角色编号
/// </summary>
public
int
RoleId
{
get
;
set
;
}
/// <summary>
/// 角色名称
/// </summary>
public
string
RoleName
{
get
;
set
;
}
/// <summary>
/// 备注/描述
/// </summary>
public
string
RoleIntro
{
get
;
set
;
}
/// <summary>
/// 角色权限
/// </summary>
public
string
RoleAuth
{
get
;
set
;
}
/// <summary>
/// 商户号Id
/// </summary>
public
int
?
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序Id
/// </summary>
public
int
?
MallBaseId
{
get
;
set
;
}
/// <summary>
/// 状态(0-正常,1-删除)
/// </summary>
public
int
?
Status
{
get
;
set
;
}
}
}
Mall.Model/Entity/User/RB_Stores.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 门店表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Stores
{
/// <summary>
/// 门店编号
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 门店名称
/// </summary>
public
string
Name
{
get
;
set
;
}
/// <summary>
/// 门店电话
/// </summary>
public
string
Tel
{
get
;
set
;
}
/// <summary>
/// 门店地址
/// </summary>
public
string
Address
{
get
;
set
;
}
/// <summary>
/// 门店经度纬度
/// </summary>
public
string
LngLat
{
get
;
set
;
}
/// <summary>
/// 门店评分
/// </summary>
public
int
?
Score
{
get
;
set
;
}
/// <summary>
/// 门店介绍
/// </summary>
public
string
Intro
{
get
;
set
;
}
/// <summary>
/// 门店封面图
/// </summary>
public
string
CoverImg
{
get
;
set
;
}
/// <summary>
/// 门店轮播图
/// </summary>
public
string
NavImg
{
get
;
set
;
}
/// <summary>
/// 营业开始时间
/// </summary>
public
string
StartTime
{
get
;
set
;
}
/// <summary>
/// 营业结束时间
/// </summary>
public
string
EndTime
{
get
;
set
;
}
/// <summary>
/// 是否全天营业(1-是)
/// </summary>
public
int
?
IsAllDay
{
get
;
set
;
}
/// <summary>
/// 商户号Id
/// </summary>
public
int
?
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序Id
/// </summary>
public
int
?
MallBaseId
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
?
CreateDate
{
get
;
set
;
}
/// <summary>
/// 删除状态
/// </summary>
public
int
?
Status
{
get
;
set
;
}
}
}
Mall.Model/Entity/User/RB_Topic_Type.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 专题分类表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Topic_Type
{
/// <summary>
/// 专题分类编号
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 专题分类名称
/// </summary>
public
string
TopicName
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
int
?
SortNum
{
get
;
set
;
}
/// <summary>
/// 禁用状态(0-禁用,1-启用)
/// </summary>
public
int
?
IsDisable
{
get
;
set
;
}
/// <summary>
/// 商户号Id
/// </summary>
public
int
?
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序Id
/// </summary>
public
int
?
MallBaseId
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
?
CreateDate
{
get
;
set
;
}
/// <summary>
/// 删除状态
/// </summary>
public
int
?
Status
{
get
;
set
;
}
}
}
Mall.Model/Entity/User/RB_Video.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 视频表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Video
{
/// <summary>
/// 视频编号
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 视频标题
/// </summary>
public
string
Title
{
get
;
set
;
}
/// <summary>
/// 视频来源(1-源地址,2-腾讯)
/// </summary>
public
int
?
SourceType
{
get
;
set
;
}
/// <summary>
/// 视频链接
/// </summary>
public
string
VedioUrl
{
get
;
set
;
}
/// <summary>
/// 视频封面图
/// </summary>
public
string
VedioCoverImg
{
get
;
set
;
}
/// <summary>
/// 视频详情介绍
/// </summary>
public
string
VedioIntro
{
get
;
set
;
}
/// <summary>
/// 排序
/// </summary>
public
int
?
SortNum
{
get
;
set
;
}
/// <summary>
/// 商户号Id
/// </summary>
public
int
?
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序Id
/// </summary>
public
int
?
MallBaseId
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
public
DateTime
?
CreateDate
{
get
;
set
;
}
/// <summary>
/// 删除状态
/// </summary>
public
int
?
Status
{
get
;
set
;
}
}
}
Mall.Model/Extend/Product/RB_Goods_OrderAfterSaleLog_Extend.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.Product
;
namespace
Mall.Model.Extend.Product
{
/// <summary>
/// 商品订单售后流程表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Goods_OrderAfterSaleLog_Extend
:
RB_Goods_OrderAfterSaleLog
{
}
}
Mall.Model/Extend/Product/RB_Goods_OrderAfterSale_Extend.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.Product
;
namespace
Mall.Model.Extend.Product
{
/// <summary>
/// 商品订单售后表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Goods_OrderAfterSale_Extend
:
RB_Goods_OrderAfterSale
{
/// <summary>
/// 订单号
/// </summary>
public
string
OrderNo
{
get
;
set
;
}
/// <summary>
/// 用户名
/// </summary>
public
string
UserName
{
get
;
set
;
}
/// <summary>
/// 商品名称
/// </summary>
public
string
GoodsName
{
get
;
set
;
}
/// <summary>
/// 收件人
/// </summary>
public
string
Consignee
{
get
;
set
;
}
/// <summary>
/// 收件人电话
/// </summary>
public
string
Mobile
{
get
;
set
;
}
/// <summary>
/// 用户平台
/// </summary>
public
int
OrderSource
{
get
;
set
;
}
/// <summary>
/// 开始时间
/// </summary>
public
string
StartTime
{
get
;
set
;
}
/// <summary>
/// 结束时间
/// </summary>
public
string
EndTime
{
get
;
set
;
}
}
}
Mall.Model/Extend/Product/RB_Goods_Order_Extend.cs
View file @
293b631f
...
...
@@ -13,8 +13,15 @@ namespace Mall.Model.Extend.Product
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Goods_Order_Extend
:
RB_Goods_Order
{
/// <summary>
/// 是否来自购物车 1是 2否
/// </summary>
public
int
?
IsFormShoppingCart
{
get
;
set
;
}
/// <summary>
/// 购物车ids
/// </summary>
public
List
<
int
>
ShoppingCartIdList
{
get
;
set
;
}
/// <summary>
/// 收货地址id
/// </summary>
public
int
?
ShoppingAddressId
{
get
;
set
;
}
...
...
@@ -57,6 +64,10 @@ namespace Mall.Model.Extend.Product
/// </summary>
public
int
?
OrderType
{
get
;
set
;
}
/// <summary>
/// 多个状态查询
/// </summary>
public
string
OrderStatusIds
{
get
;
set
;
}
/// <summary>
/// 明细列表
/// </summary>
public
List
<
RB_Goods_OrderDetail_Extend
>
DetailList
{
get
;
set
;
}
...
...
Mall.Model/Extend/User/RB_Article_Extend.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 文章表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Article_Extend
:
Model
.
Entity
.
User
.
RB_Article
{
}
}
Mall.Model/Extend/User/RB_Emp_Config_Extend.cs
0 → 100644
View file @
293b631f
using
System
;
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 员工基础设置表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Emp_Config_Extend
:
Model
.
Entity
.
User
.
RB_Emp_Config
{
}
}
Mall.Model/Extend/User/RB_Employee_Extend.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 员工基础设置表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Employee_Extend
:
Model
.
Entity
.
User
.
RB_Employee
{
}
}
\ No newline at end of file
Mall.Model/Extend/User/RB_Role_Extend.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 角色表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Role_Extend
:
Model
.
Entity
.
User
.
RB_Role
{
}
}
\ No newline at end of file
Mall.Model/Extend/User/RB_Stores_Extend.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 门店表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Stores_Extend
:
Model
.
Entity
.
User
.
RB_Stores
{
}
}
Mall.Model/Extend/User/RB_Topic_Type_Extend.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 专题分类表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Topic_Type_Extend
:
Model
.
Entity
.
User
.
RB_Topic_Type
{
}
}
Mall.Model/Extend/User/RB_Video_Extend.cs
0 → 100644
View file @
293b631f
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.User
{
/// <summary>
/// 视频表扩展实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Video_Extend
:
Model
.
Entity
.
User
.
RB_Video
{
}
}
Mall.Module.Product/OrderModule.cs
View file @
293b631f
This diff is collapsed.
Click to expand it.
Mall.Module.User/ContentModule.cs
0 → 100644
View file @
293b631f
This diff is collapsed.
Click to expand it.
Mall.Module.User/EmployeeModule.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.User
;
using
Mall.Repository
;
using
Mall.Repository.User
;
using
System.Linq
;
namespace
Mall.Module.User
{
/// <summary>
/// 员工相关处理类
/// </summary>
public
class
EmployeeModule
{
/// <summary>
/// 角色管理仓储层对象
/// </summary>
private
readonly
RB_RoleRepository
roleRepository
=
new
RB_RoleRepository
();
/// <summary>
/// 员工管理仓储层对象
/// </summary>
private
readonly
RB_EmployeeRepository
employeeRepository
=
new
RB_EmployeeRepository
();
/// <summary>
/// 员工配置仓储层对象
/// </summary>
private
readonly
RB_Emp_ConfigRepository
emp_ConfigRepository
=
new
RB_Emp_ConfigRepository
();
#
region
角色管理
/// <summary>
/// 角色分页列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_Role_Extend
>
GetRolePageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Role_Extend
query
)
{
return
roleRepository
.
GetRolePageListRepository
(
pageIndex
,
pageSize
,
out
rowCount
,
query
);
}
/// <summary>
/// 获取角色列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Role_Extend
>
GetRoleListModule
(
RB_Role_Extend
query
)
{
return
roleRepository
.
GetRoleListRepository
(
query
);
}
/// <summary>
/// 新增修改角色
/// </summary>
/// <param name="extModel"></param>
/// <returns></returns>
public
bool
SetRoleModule
(
RB_Role_Extend
extModel
)
{
bool
flag
=
false
;
if
(
extModel
.
RoleId
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Role_Extend
.
RoleName
),
extModel
.
RoleName
.
Trim
()},
{
nameof
(
RB_Role_Extend
.
RoleIntro
),
extModel
.
RoleIntro
},
{
nameof
(
RB_Role_Extend
.
RoleAuth
),
extModel
.
RoleAuth
},
};
flag
=
roleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Role_Extend
.
RoleId
),
extModel
.
RoleId
));
}
else
{
var
newId
=
roleRepository
.
Insert
(
extModel
);
extModel
.
RoleId
=
newId
;
flag
=
newId
>
0
;
}
return
flag
;
}
/// <summary>
/// 获取角色实体
/// </summary>
/// <param name="RoleId"></param>
/// <returns></returns>
public
RB_Role_Extend
GetRoleModule
(
object
RoleId
)
{
return
roleRepository
.
GetEntity
<
RB_Role_Extend
>(
RoleId
);
}
/// <summary>
/// 删除角色
/// </summary>
/// <param name="RoleId"></param>
/// <returns></returns>
public
bool
RemoveRoleModule
(
object
RoleId
)
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Role_Extend
.
Status
),
1
},
};
flag
=
roleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Role_Extend
.
RoleId
),
RoleId
));
return
flag
;
}
#
endregion
#
region
员工管理
/// <summary>
/// 员工分页列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_Employee_Extend
>
GetEmployeePageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Employee_Extend
query
)
{
return
employeeRepository
.
GetEmployeePageListRepository
(
pageIndex
,
pageSize
,
out
rowCount
,
query
);
}
/// <summary>
/// 获取员工列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Employee_Extend
>
GetEmployeeListModule
(
RB_Employee_Extend
query
)
{
return
employeeRepository
.
GetEmployeeListRepository
(
query
);
}
/// <summary>
/// 新增修改员工
/// </summary>
/// <param name="extModel"></param>
/// <returns></returns>
public
bool
SetEmployeeModule
(
RB_Employee_Extend
extModel
)
{
bool
flag
=
false
;
if
(
extModel
.
EmpId
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Employee_Extend
.
EmpAccount
),
extModel
.
EmpAccount
.
Trim
()},
{
nameof
(
RB_Employee_Extend
.
EmpPwd
),
extModel
.
EmpPwd
},
{
nameof
(
RB_Employee_Extend
.
EmpName
),
extModel
.
EmpName
},
{
nameof
(
RB_Employee_Extend
.
RoleAuth
),
extModel
.
RoleAuth
},
};
flag
=
employeeRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Employee_Extend
.
EmpId
),
extModel
.
EmpId
));
}
else
{
var
newId
=
employeeRepository
.
Insert
(
extModel
);
extModel
.
EmpId
=
newId
;
flag
=
newId
>
0
;
}
return
flag
;
}
/// <summary>
/// 获取员工实体
/// </summary>
/// <param name="EmpId"></param>
/// <returns></returns>
public
RB_Employee_Extend
GetEmployeeModule
(
object
EmpId
)
{
return
employeeRepository
.
GetEntity
<
RB_Employee_Extend
>(
EmpId
);
}
/// <summary>
/// 删除员工
/// </summary>
/// <param name="EmpId"></param>
/// <returns></returns>
public
bool
RemoveEmployeeModule
(
object
EmpId
)
{
bool
flag
=
false
;
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Employee_Extend
.
Status
),
1
},
};
flag
=
roleRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Employee_Extend
.
EmpId
),
EmpId
));
return
flag
;
}
#
endregion
#
region
员工配置
/// <summary>
/// 获取员工配置实体
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
RB_Emp_Config_Extend
GetEmpConfigListModule
(
RB_Emp_Config_Extend
query
)
{
return
emp_ConfigRepository
.
GetEmpConfigListRepository
(
query
)?.
FirstOrDefault
();
}
/// <summary>
/// 新增修改员工配置
/// </summary>
/// <param name="extModel"></param>
/// <returns></returns>
public
bool
SetEmpConfigModule
(
RB_Emp_Config_Extend
extModel
)
{
bool
flag
=
false
;
if
(
extModel
.
ConfigId
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Emp_Config_Extend
.
IsUpdatePwd
),
extModel
.
IsUpdatePwd
},
{
nameof
(
RB_Emp_Config_Extend
.
Logo
),
extModel
.
Logo
},
{
nameof
(
RB_Emp_Config_Extend
.
Copyright
),
extModel
.
Copyright
},
{
nameof
(
RB_Emp_Config_Extend
.
CopyrightLink
),
extModel
.
CopyrightLink
},
};
flag
=
emp_ConfigRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Emp_Config_Extend
.
ConfigId
),
extModel
.
ConfigId
));
}
else
{
var
newId
=
emp_ConfigRepository
.
Insert
(
extModel
);
extModel
.
ConfigId
=
newId
;
flag
=
newId
>
0
;
}
return
flag
;
}
#
endregion
}
}
\ No newline at end of file
Mall.Repository/Product/RB_Goods_OrderAfterSaleLogRepository.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Extend.Product
;
using
System.Linq
;
using
Mall.Model.Entity.User
;
namespace
Mall.Repository.Product
{
/// <summary>
/// 商品订单售后流程仓储层
/// </summary>
public
class
RB_Goods_OrderAfterSaleLogRepository
:
RepositoryBase
<
RB_Goods_OrderAfterSaleLog
>
{
/// <summary>
/// 获取列表
/// </summary>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Goods_OrderAfterSaleLog_Extend
>
GetList
(
RB_Goods_OrderAfterSaleLog_Extend
dmodel
)
{
string
where
=
$" 1=1 "
;
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Goods_OrderAfterSaleLog
.
TenantId
)}
=
{
dmodel
.
TenantId
}
"
;
}
if
(
dmodel
.
MallBaseId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Goods_OrderAfterSaleLog
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
}
if
(
dmodel
.
Type
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Goods_OrderAfterSaleLog
.
Type
)}
=
{
dmodel
.
Type
}
"
;
}
if
(
dmodel
.
ReOrderId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Goods_OrderAfterSaleLog
.
ReOrderId
)}
=
{
dmodel
.
ReOrderId
}
"
;
}
string
sql
=
$@"SELECT * FROM RB_Goods_OrderAfterSaleLog where
{
where
}
order by Id desc"
;
return
Get
<
RB_Goods_OrderAfterSaleLog_Extend
>(
sql
).
ToList
();
}
}
}
Mall.Repository/Product/RB_Goods_OrderAfterSaleRepository.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.Product
;
using
Mall.Model.Extend.Product
;
using
System.Linq
;
using
Mall.Model.Entity.User
;
namespace
Mall.Repository.Product
{
/// <summary>
/// 商品订单售后仓储层
/// </summary>
public
class
RB_Goods_OrderAfterSaleRepository
:
RepositoryBase
<
RB_Goods_OrderAfterSale
>
{
/// <summary>
/// 获取售后订单分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="count"></param>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Goods_OrderAfterSale_Extend
>
GetERPPageList
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_OrderAfterSale_Extend
dmodel
)
{
string
where
=
$" 1=1 and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
Status
)}
=0"
;
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
TenantId
)}
=
{
dmodel
.
TenantId
}
"
;
}
if
(
dmodel
.
MallBaseId
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
}
if
(
dmodel
.
UserId
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
UserId
)}
=
{
dmodel
.
UserId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
UserName
))
{
where
+=
$" and mu.
{
nameof
(
RB_Member_User
.
Name
)}
like '%
{
dmodel
.
UserName
}
%'"
;
}
if
(
dmodel
.
OrderId
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
OrderId
)}
=
{
dmodel
.
OrderId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
ReOrderNo
))
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
ReOrderNo
)}
like '%
{
dmodel
.
ReOrderNo
}
%'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
OrderNo
))
{
where
+=
$" and o.
{
nameof
(
RB_Goods_Order
.
OrderNo
)}
like '%
{
dmodel
.
OrderNo
}
%'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
Consignee
))
{
where
+=
$" and o.
{
nameof
(
RB_Goods_Order
.
Consignee
)}
like '%
{
dmodel
.
Consignee
}
%'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
Mobile
))
{
where
+=
$" and o.
{
nameof
(
RB_Goods_Order
.
Mobile
)}
like '%
{
dmodel
.
Mobile
}
%'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
GoodsName
))
{
where
+=
$" and od.
{
nameof
(
RB_Goods_OrderDetail
.
GoodsName
)}
like '%
{
dmodel
.
GoodsName
}
%'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
StartTime
))
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
CreateDate
)}
>='
{
dmodel
.
StartTime
}
'"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
EndTime
))
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
CreateDate
)}
<='
{
dmodel
.
EndTime
}
23:59:59'"
;
}
string
sql
=
$@"SELECT oas.*,mu.Name as UserName FROM rb_goods_orderaftersale oas
INNER JOIN rb_goods_order o on oas.OrderId=o.OrderId
INNER JOIN rb_goods_orderdetail od on od.Id=oas.OrderDetialId
INNER JOIN rb_member_user mu on mu.Id=oas.UserId
{
where
}
order by Id desc"
;
return
GetPage
<
RB_Goods_OrderAfterSale_Extend
>(
pageIndex
,
pageSize
,
out
count
,
sql
).
ToList
();
}
/// <summary>
/// 获取售后订单分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="count"></param>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Goods_OrderAfterSale_Extend
>
GetAppletPageList
(
int
pageIndex
,
int
pageSize
,
out
long
count
,
RB_Goods_OrderAfterSale_Extend
dmodel
)
{
string
where
=
$" 1=1 and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
Status
)}
=0"
;
if
(
dmodel
.
TenantId
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
TenantId
)}
=
{
dmodel
.
TenantId
}
"
;
}
if
(
dmodel
.
MallBaseId
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
MallBaseId
)}
=
{
dmodel
.
MallBaseId
}
"
;
}
if
(
dmodel
.
UserId
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
UserId
)}
=
{
dmodel
.
UserId
}
"
;
}
if
(
dmodel
.
OrderId
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
OrderId
)}
=
{
dmodel
.
OrderId
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
ReOrderNo
))
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
ReOrderNo
)}
like '%
{
dmodel
.
ReOrderNo
}
%'"
;
}
string
sql
=
$@"SELECT oas.* FROM rb_goods_orderaftersale oas
{
where
}
order by Id desc"
;
return
GetPage
<
RB_Goods_OrderAfterSale_Extend
>(
pageIndex
,
pageSize
,
out
count
,
sql
).
ToList
();
}
}
}
Mall.Repository/Product/RB_Goods_OrderRepository.cs
View file @
293b631f
...
...
@@ -63,6 +63,10 @@ namespace Mall.Repository.Product
{
where
+=
$@" and o.
{
nameof
(
RB_Goods_Order
.
OrderStatus
)}
=
{(
int
)
dmodel
.
OrderStatus
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
OrderStatusIds
))
{
where
+=
$@" and o.
{
nameof
(
RB_Goods_Order
.
OrderStatus
)}
in(
{
dmodel
.
OrderStatusIds
}
)"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
OrderNo
))
{
where
+=
$@" and o.
{
nameof
(
RB_Goods_Order
.
OrderNo
)}
like '%
{
dmodel
.
OrderNo
}
%'"
;
...
...
Mall.Repository/User/RB_ArticleRepository.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.User
;
using
System.Linq
;
namespace
Mall.Repository.User
{
/// <summary>
/// 文章表仓储层
/// </summary>
public
class
RB_ArticleRepository
:
RepositoryBase
<
RB_Article
>
{
/// <summary>
/// 文章分页列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_Article_Extend
>
GetArticlePageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Article_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Article WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Article_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Article_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Article_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Title
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Title
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Article_Extend
.
Title
),
query
.
Title
.
Trim
());
}
builder
.
Append
(
" ORDER BY SortNum "
);
return
GetPage
<
RB_Article_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
/// <summary>
/// 获取文章列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Article_Extend
>
GetArticleListRepository
(
RB_Article_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Article WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Article_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Article_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Article_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Title
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Title
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Article_Extend
.
Title
),
query
.
Title
.
Trim
());
}
builder
.
Append
(
" ORDER BY SortNum "
);
return
Get
<
RB_Article_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
Mall.Repository/User/RB_Emp_ConfigRepository.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.User
;
using
System.Linq
;
namespace
Mall.Repository.User
{
/// <summary>
/// 员工基础配置仓储层
/// </summary>
public
class
RB_Emp_ConfigRepository
:
RepositoryBase
<
RB_Emp_Config
>
{
/// <summary>
/// 获取员工配置列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Emp_Config_Extend
>
GetEmpConfigListRepository
(
RB_Emp_Config_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Emp_Config WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Emp_Config_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Emp_Config_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
ConfigId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Emp_Config_Extend
.
ConfigId
),
query
.
ConfigId
);
}
return
Get
<
RB_Emp_Config_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
\ No newline at end of file
Mall.Repository/User/RB_EmployeeRepository.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.User
;
using
System.Linq
;
namespace
Mall.Repository.User
{
/// <summary>
/// 员工表仓储层
/// </summary>
public
class
RB_EmployeeRepository
:
RepositoryBase
<
RB_Employee
>
{
/// <summary>
/// 员工分页列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_Employee_Extend
>
GetEmployeePageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Employee_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Employee WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Employee_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Employee_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
EmpId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Employee_Extend
.
EmpId
),
query
.
EmpId
);
}
if
(
query
.
EmpName
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
EmpName
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Employee_Extend
.
EmpName
),
query
.
EmpName
.
Trim
());
}
return
GetPage
<
RB_Employee_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
/// <summary>
/// 获取员工列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Employee_Extend
>
GetEmployeeListRepository
(
RB_Employee_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Employee WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Employee_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Employee_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
EmpId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Employee_Extend
.
EmpId
),
query
.
EmpId
);
}
if
(
query
.
EmpName
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
EmpName
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Employee_Extend
.
EmpName
),
query
.
EmpName
.
Trim
());
}
return
Get
<
RB_Employee_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
\ No newline at end of file
Mall.Repository/User/RB_RoleRepository.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.User
;
using
System.Linq
;
namespace
Mall.Repository.User
{
/// <summary>
/// 角色表仓储层
/// </summary>
public
class
RB_RoleRepository
:
RepositoryBase
<
RB_Role
>
{
/// <summary>
/// 角色分页列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_Role_Extend
>
GetRolePageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Role_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Role WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
RoleId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_Extend
.
RoleId
),
query
.
RoleId
);
}
if
(
query
.
RoleName
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
RoleName
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Role_Extend
.
RoleName
),
query
.
RoleName
.
Trim
());
}
return
GetPage
<
RB_Role_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
/// <summary>
/// 获取角色列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Role_Extend
>
GetRoleListRepository
(
RB_Role_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Role WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
RoleId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Role_Extend
.
RoleId
),
query
.
RoleId
);
}
if
(
query
.
RoleName
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
RoleName
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Role_Extend
.
RoleName
),
query
.
RoleName
.
Trim
());
}
return
Get
<
RB_Role_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
\ No newline at end of file
Mall.Repository/User/RB_StoresRepository.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.User
;
using
System.Linq
;
namespace
Mall.Repository.User
{
/// <summary>
/// 门店表仓储层
/// </summary>
public
class
RB_StoresRepository
:
RepositoryBase
<
RB_Stores
>
{
/// <summary>
/// 门店分页列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_Stores_Extend
>
GetStoresPageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Stores_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Stores WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Stores_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Stores_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Stores_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Name
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Name
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Stores_Extend
.
Name
),
query
.
Name
.
Trim
());
}
builder
.
Append
(
" ORDER BY Id DESC "
);
return
GetPage
<
RB_Stores_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
/// <summary>
/// 门店分类列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Stores_Extend
>
GetStoresListRepository
(
RB_Stores_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Stores WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Stores_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Stores_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Stores_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Name
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Name
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Stores_Extend
.
Name
),
query
.
Name
.
Trim
());
}
builder
.
Append
(
" ORDER BY Id DESC "
);
return
Get
<
RB_Stores_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
\ No newline at end of file
Mall.Repository/User/RB_Topic_TypeRepository.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.User
;
using
System.Linq
;
namespace
Mall.Repository.User
{
/// <summary>
/// 专题分类表仓储层
/// </summary>
public
class
RB_Topic_TypeRepository
:
RepositoryBase
<
RB_Topic_Type
>
{
/// <summary>
/// 专题分类分页列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_Topic_Type_Extend
>
GetTopicTypePageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Topic_Type_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Topic_Type WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Topic_Type_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Topic_Type_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Topic_Type_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
TopicName
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
TopicName
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Topic_Type_Extend
.
TopicName
),
query
.
TopicName
.
Trim
());
}
builder
.
Append
(
" ORDER BY SortNum "
);
return
GetPage
<
RB_Topic_Type_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
/// <summary>
/// 获取专题分类列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Topic_Type_Extend
>
GetTopicTypeListRepository
(
RB_Topic_Type_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Topic_Type WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Topic_Type_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Topic_Type_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Topic_Type_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
TopicName
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
TopicName
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Topic_Type_Extend
.
TopicName
),
query
.
TopicName
.
Trim
());
}
builder
.
Append
(
" ORDER BY SortNum "
);
return
Get
<
RB_Topic_Type_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
Mall.Repository/User/RB_VideoRepository.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.User
;
using
Mall.Model.Extend.User
;
using
System.Linq
;
namespace
Mall.Repository.User
{
/// <summary>
/// 视频表仓储层
/// </summary>
public
class
RB_VideoRepository
:
RepositoryBase
<
RB_Video
>
{
/// <summary>
/// 视频分页列表
/// </summary>
/// <param name="pageIndex">页码</param>
/// <param name="pageSize">每页显示条数</param>
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_Video_Extend
>
GetVideoPageListRepository
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_Video_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Video WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Video_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Video_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Video_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Title
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Title
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Video_Extend
.
Title
),
query
.
Title
.
Trim
());
}
builder
.
Append
(
" ORDER BY Id DESC "
);
return
GetPage
<
RB_Video_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
builder
.
ToString
()).
ToList
();
}
/// <summary>
/// 获取视频列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_Video_Extend
>
GetVideoListRepository
(
RB_Video_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Video WHERE 1=1 AND Status=0 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Video_Extend
.
TenantId
),
query
.
TenantId
);
}
if
(
query
.
MallBaseId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Video_Extend
.
MallBaseId
),
query
.
MallBaseId
);
}
if
(
query
.
Id
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Video_Extend
.
Id
),
query
.
Id
);
}
if
(
query
.
Title
!=
null
&&
!
string
.
IsNullOrEmpty
(
query
.
Title
.
Trim
()))
{
builder
.
AppendFormat
(
" AND {0} LIKE '%{1}%' "
,
nameof
(
RB_Video_Extend
.
Title
),
query
.
Title
.
Trim
());
}
builder
.
Append
(
" ORDER BY Id DESC "
);
return
Get
<
RB_Video_Extend
>(
builder
.
ToString
()).
ToList
();
}
}
}
Mall.WebApi/Controllers/Product/AppletOrderController.cs
View file @
293b631f
...
...
@@ -135,7 +135,7 @@ namespace Mall.WebApi.Controllers.MallBase
return
ApiResult
.
ParamIsNull
(
""
);
}
bool
flag
=
orderModule
.
DelGoodsShoppingCartInfo
(
ShoppingCartIds
,
userInfo
.
TenantId
,
userInfo
.
MallBaseId
);
bool
flag
=
orderModule
.
DelGoodsShoppingCartInfo
(
ShoppingCartIds
,
userInfo
.
UserId
,
userInfo
.
TenantId
,
userInfo
.
MallBaseId
);
if
(
flag
)
{
return
ApiResult
.
Success
();
...
...
@@ -150,6 +150,133 @@ namespace Mall.WebApi.Controllers.MallBase
#
region
订单管理
/// <summary>
/// 我的订单分页列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetAppletGoodsMyOrderPageList
()
{
var
parms
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
ResultPageModel
pagelist
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
parms
.
msg
.
ToString
());
RB_Goods_Order_Extend
demodel
=
JsonConvert
.
DeserializeObject
<
RB_Goods_Order_Extend
>(
parms
.
msg
.
ToString
());
demodel
.
TenantId
=
userInfo
.
TenantId
;
demodel
.
MallBaseId
=
userInfo
.
MallBaseId
;
demodel
.
UserId
=
userInfo
.
UserId
;
demodel
.
Recycled
=
1
;
if
(
demodel
.
OrderStatus
==
Common
.
Enum
.
Goods
.
OrderStatusEnum
.
WaitSendGoods
)
{
demodel
.
OrderStatusIds
=
"2,6"
;
//待处理也是待发货状态才有的
demodel
.
OrderStatus
=
0
;
}
var
list
=
orderModule
.
GetAppletGoodsMyOrderPageList
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
pagelist
.
count
=
Convert
.
ToInt32
(
count
);
pagelist
.
pageData
=
list
.
Select
(
x
=>
new
{
x
.
OrderId
,
x
.
OrderNo
,
x
.
DeliveryMethod
,
DeliveryMethodName
=
x
.
DeliveryMethod
.
GetEnumName
(),
x
.
Income
,
x
.
FreightMoney
,
x
.
CouponMoney
,
x
.
PaymentWay
,
PaymentWayName
=
x
.
PaymentWay
.
GetEnumName
(),
DetailList
=
x
.
DetailList
.
Select
(
y
=>
new
{
y
.
Id
,
y
.
CoverImagePath
,
y
.
OrderType
,
OrderTypeName
=
y
.
OrderType
.
GetEnumName
(),
y
.
GoodsName
,
y
.
Specification
,
y
.
ProductCode
,
y
.
Final_Price
,
y
.
Number
}),
x
.
OrderStatus
,
OrderStatusName
=
x
.
OrderStatus
.
GetEnumName
(),
x
.
TenantId
,
x
.
MallBaseId
,
CreateDate
=
x
.
CreateDate
.
HasValue
?
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
:
""
});
return
ApiResult
.
Success
(
""
,
pagelist
);
}
/// <summary>
/// 获取我的订单详情
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetAppletMyOrderInfo
()
{
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
OrderId
=
parms
.
GetInt
(
"OrderId"
,
0
);
if
(
OrderId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
return
orderModule
.
GetAppletMyOrderInfo
(
OrderId
,
userInfo
.
UserId
,
userInfo
.
TenantId
,
userInfo
.
MallBaseId
);
}
/// <summary>
/// 获取我的订单商品售后初始信息
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetAppletMyOrderAfterSaleInfo
()
{
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
OrderDetailId
=
parms
.
GetInt
(
"OrderDetailId"
,
0
);
if
(
OrderDetailId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
return
orderModule
.
GetAppletMyOrderAfterSaleInfo
(
OrderDetailId
,
userInfo
.
UserId
,
userInfo
.
TenantId
,
userInfo
.
MallBaseId
);
}
/// <summary>
/// 申请售后
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SetAppletMyOrderAfterSale
()
{
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
OrderDetailId
=
parms
.
GetInt
(
"OrderDetailId"
,
0
);
if
(
OrderDetailId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
return
ApiResult
.
Success
();
}
/// <summary>
/// 获取我的订单快递信息
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetAppletMyOrderExpressInfo
()
{
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
OrderId
=
parms
.
GetInt
(
"OrderId"
,
0
);
if
(
OrderId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
var
Robj
=
orderModule
.
GetAppletMyOrderExpressInfo
(
OrderId
,
userInfo
.
TenantId
,
userInfo
.
MallBaseId
);
return
ApiResult
.
Success
(
""
,
Robj
);
}
/// <summary>
/// 结算页面详情
/// </summary>
...
...
@@ -224,6 +351,11 @@ namespace Mall.WebApi.Controllers.MallBase
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
RB_Goods_Order_Extend
demodel
=
JsonConvert
.
DeserializeObject
<
RB_Goods_Order_Extend
>(
req
.
msg
.
ToString
());
if
(
demodel
.
IsFormShoppingCart
==
1
)
{
if
(
demodel
.
ShoppingCartIdList
==
null
||
!
demodel
.
ShoppingCartIdList
.
Any
())
{
return
ApiResult
.
ParamIsNull
(
"请传递购物车id"
);
}
}
if
(
string
.
IsNullOrEmpty
(
demodel
.
Consignee
))
{
return
ApiResult
.
ParamIsNull
(
"请传递收件人"
);
}
...
...
@@ -236,18 +368,11 @@ namespace Mall.WebApi.Controllers.MallBase
{
return
ApiResult
.
ParamIsNull
(
"收货地址有误"
);
}
if
(
string
.
IsNullOrEmpty
(
demodel
.
Sh
i
ppingAddress
))
{
if
(
string
.
IsNullOrEmpty
(
demodel
.
Sh
o
ppingAddress
))
{
return
ApiResult
.
ParamIsNull
(
"收货详细地址不能为空"
);
}
}
else
{
if
(
string
.
IsNullOrEmpty
(
demodel
.
Consignee
))
{
return
ApiResult
.
ParamIsNull
(
"收件人不能为空"
);
}
if
(
string
.
IsNullOrEmpty
(
demodel
.
Mobile
))
{
return
ApiResult
.
ParamIsNull
(
"收件人手机不能为空"
);
}
}
if
(
demodel
.
DetailList
==
null
||
!
demodel
.
DetailList
.
Any
())
{
return
ApiResult
.
ParamIsNull
(
"请传递商品信息"
);
}
...
...
@@ -268,6 +393,7 @@ namespace Mall.WebApi.Controllers.MallBase
#
region
赋默认值
demodel
.
TenantId
=
userInfo
.
TenantId
;
demodel
.
MallBaseId
=
userInfo
.
MallBaseId
;
demodel
.
Country
??=
2
;
demodel
.
OrderStatus
=
Common
.
Enum
.
Goods
.
OrderStatusEnum
.
NonPayment
;
demodel
.
CreateDate
=
DateTime
.
Now
;
demodel
.
Fee
??=
0
;
...
...
@@ -286,6 +412,31 @@ namespace Mall.WebApi.Controllers.MallBase
return
orderModule
.
SetAppletGoodsOrderInfo
(
demodel
);
}
/// <summary>
/// 未付款取消订单/已付款申请取消订单
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
CancelAppletGoodsOrderInfo
()
{
var
req
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
OrderId
=
parms
.
GetInt
(
"OrderId"
,
0
);
int
Type
=
parms
.
GetInt
(
"Type"
,
1
);
//1未付款取消 2已付款未发货申请取消
string
Remark
=
parms
.
GetStringValue
(
"Remark"
);
//type=2 申请备注
if
(
OrderId
<=
0
)
{
return
ApiResult
.
ParamIsNull
();
}
if
(
Type
==
2
)
{
if
(
string
.
IsNullOrEmpty
(
Remark
))
{
return
ApiResult
.
ParamIsNull
(
"请输入取消申请备注"
);
}
}
bool
flag
=
orderModule
.
CancelAppletGoodsOrderInfo
(
OrderId
,
Type
,
Remark
,
userInfo
.
UserId
,
userInfo
.
TenantId
,
userInfo
.
MallBaseId
);
if
(
flag
)
{
return
ApiResult
.
Success
();
}
else
{
return
ApiResult
.
Failed
();
}
}
#
endregion
}
}
\ No newline at end of file
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
293b631f
...
...
@@ -76,7 +76,7 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
Consignee
,
x
.
Mobile
,
x
.
DistrictAddress
,
x
.
Sh
i
ppingAddress
,
x
.
Sh
o
ppingAddress
,
x
.
BuyerMessage
,
x
.
Remark
,
x
.
OrderStatus
,
...
...
@@ -184,7 +184,7 @@ namespace Mall.WebApi.Controllers.MallBase
case
11
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
Mobile
)
{
});
break
;
case
12
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
Sh
i
ppingAddress
)
{
});
break
;
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
Sh
o
ppingAddress
)
{
});
break
;
case
13
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
(
item
.
PreferPrice
??
0
).
ToString
())
{
});
break
;
case
14
:
...
...
@@ -521,6 +521,69 @@ namespace Mall.WebApi.Controllers.MallBase
}
}
/// <summary>
/// 修改订单明细价格
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SetOrderDetialMoneyInfo
()
{
var
req
=
RequestParm
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
OrderDetailId
=
parms
.
GetInt
(
"OrderDetailId"
,
0
);
decimal
Income
=
parms
.
GetDecimal
(
"Income"
);
if
(
OrderDetailId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递订单明细id"
);
}
if
(
Income
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递价格"
);
}
bool
flag
=
orderModule
.
SetOrderDetialMoneyInfo
(
OrderDetailId
,
Income
,
req
.
TenantId
,
req
.
MallBaseId
);
if
(
flag
)
{
return
ApiResult
.
Success
();
}
else
{
return
ApiResult
.
Failed
();
}
}
/// <summary>
/// 修改订单价格/运费
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SetOrderMoneyOrFreightInfo
()
{
var
req
=
RequestParm
;
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
int
OrderId
=
parms
.
GetInt
(
"OrderId"
,
0
);
decimal
Income
=
parms
.
GetDecimal
(
"Income"
);
decimal
FreightMoney
=
parms
.
GetDecimal
(
"FreightMoney"
);
if
(
OrderId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递订单明细id"
);
}
if
(
Income
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递价格"
);
}
if
(
FreightMoney
<
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递运费"
);
}
bool
flag
=
orderModule
.
SetOrderMoneyOrFreightInfo
(
OrderId
,
Income
,
FreightMoney
,
req
.
TenantId
,
req
.
MallBaseId
);
if
(
flag
)
{
return
ApiResult
.
Success
();
}
else
{
return
ApiResult
.
Failed
();
}
}
/// <summary>
/// 设置订单收货地址
/// </summary>
...
...
@@ -542,7 +605,7 @@ namespace Mall.WebApi.Controllers.MallBase
{
return
ApiResult
.
ParamIsNull
(
"请选择区域"
);
}
if
(
string
.
IsNullOrEmpty
(
demodel
.
Sh
i
ppingAddress
))
{
if
(
string
.
IsNullOrEmpty
(
demodel
.
Sh
o
ppingAddress
))
{
return
ApiResult
.
ParamIsNull
(
"请输入详细地址"
);
}
...
...
@@ -820,7 +883,7 @@ namespace Mall.WebApi.Controllers.MallBase
}),
x
.
Consignee
,
x
.
Mobile
,
x
.
Sh
i
ppingAddress
,
x
.
Sh
o
ppingAddress
,
x
.
BuyerMessage
,
x
.
Remark
,
x
.
OrderStatus
,
...
...
@@ -955,7 +1018,7 @@ namespace Mall.WebApi.Controllers.MallBase
case
11
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
Mobile
)
{
});
break
;
case
12
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
Sh
i
ppingAddress
)
{
});
break
;
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
Sh
o
ppingAddress
)
{
});
break
;
case
13
:
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
(
item
.
PreferPrice
??
0
).
ToString
())
{
});
break
;
case
14
:
...
...
Mall.WebApi/Controllers/User/EmployeeController.cs
0 → 100644
View file @
293b631f
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Mall.Common.API
;
using
Mall.Model.Extend.User
;
using
Mall.Module.User
;
using
Mall.WebApi.Filter
;
using
Microsoft.AspNetCore.Cors
;
using
Microsoft.AspNetCore.Mvc
;
using
Newtonsoft.Json
;
using
Mall.Common.Plugin
;
using
Mall.Common.Enum.User
;
using
Mall.CacheManager.User
;
using
Newtonsoft.Json.Linq
;
using
Mall.Common
;
using
Mall.Model.Entity.User
;
namespace
Mall.WebApi.Controllers.User
{
[
Route
(
"api/[controller]/[action]"
)]
[
ApiExceptionFilter
]
[
ApiController
]
[
EnableCors
(
"AllowCors"
)]
public
class
EmployeeController
:
BaseController
{
/// <summary>
/// 员工相关处理类对象
/// </summary>
private
readonly
EmployeeModule
module
=
new
EmployeeModule
();
#
region
角色管理
/// <summary>
/// 角色分页列表
/// </summary>
/// <returns></returns>
public
ApiResult
GetRolePageList
()
{
ResultPageModel
pageModel
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
msg
.
ToString
());
var
query
=
JsonConvert
.
DeserializeObject
<
RB_Role_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
var
list
=
module
.
GetRolePageListModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
pageData
=
list
;
return
ApiResult
.
Success
(
data
:
pageModel
);
}
/// <summary>
/// 获取角色列表
/// </summary>
/// <returns></returns>
public
ApiResult
GetRoleList
()
{
var
query
=
JsonConvert
.
DeserializeObject
<
RB_Role_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
var
list
=
module
.
GetRoleListModule
(
query
);
return
ApiResult
.
Success
(
data
:
list
);
}
/// <summary>
/// 新增修改角色
/// </summary>
/// <returns></returns>
public
ApiResult
SetRole
()
{
var
extModel
=
JsonConvert
.
DeserializeObject
<
RB_Role_Extend
>(
RequestParm
.
msg
.
ToString
());
extModel
.
Status
=
0
;
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
var
flag
=
module
.
SetRoleModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 获取角色实体
/// </summary>
/// <returns></returns>
public
ApiResult
GetRole
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
RoleId
=
parms
.
GetInt
(
"RoleId"
,
0
);
var
extModel
=
module
.
GetRoleModule
(
RoleId
);
return
ApiResult
.
Success
(
data
:
extModel
);
}
/// <summary>
/// 删除角色
/// </summary>
/// <returns></returns>
public
ApiResult
RemoveRole
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
RoleId
=
parms
.
GetInt
(
"RoleId"
,
0
);
var
flag
=
module
.
RemoveRoleModule
(
RoleId
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
endregion
#
region
员工管理
/// <summary>
/// 员工分页列表
/// </summary>
/// <returns></returns>
public
ApiResult
GetEmployeePageList
()
{
ResultPageModel
pageModel
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
msg
.
ToString
());
var
query
=
JsonConvert
.
DeserializeObject
<
RB_Employee_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
var
list
=
module
.
GetEmployeePageListModule
(
pageModel
.
pageIndex
,
pageModel
.
pageSize
,
out
long
rowsCount
,
query
);
pageModel
.
count
=
Convert
.
ToInt32
(
rowsCount
);
pageModel
.
pageData
=
list
;
return
ApiResult
.
Success
(
data
:
pageModel
);
}
/// <summary>
/// 获取员工列表
/// </summary>
/// <returns></returns>
public
ApiResult
GetEmployeeList
()
{
var
query
=
JsonConvert
.
DeserializeObject
<
RB_Employee_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
var
list
=
module
.
GetEmployeeListModule
(
query
);
return
ApiResult
.
Success
(
data
:
list
);
}
/// <summary>
/// 新增修改员工
/// </summary>
/// <returns></returns>
public
ApiResult
SetEmployee
()
{
var
extModel
=
JsonConvert
.
DeserializeObject
<
RB_Employee_Extend
>(
RequestParm
.
msg
.
ToString
());
extModel
.
Status
=
0
;
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
var
flag
=
module
.
SetEmployeeModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 获取员工实体
/// </summary>
/// <returns></returns>
public
ApiResult
GetEmployee
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
EmpId
=
parms
.
GetInt
(
"EmpId"
,
0
);
var
extModel
=
module
.
GetEmployeeModule
(
EmpId
);
return
ApiResult
.
Success
(
data
:
extModel
);
}
/// <summary>
/// 删除员工
/// </summary>
/// <returns></returns>
public
ApiResult
RemoveEmployee
()
{
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
var
EmpId
=
parms
.
GetInt
(
"EmpId"
,
0
);
var
flag
=
module
.
RemoveEmployeeModule
(
EmpId
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
endregion
#
region
员工管理
/// <summary>
/// 获取员工配置列表
/// </summary>
/// <returns></returns>
public
ApiResult
GetEmpConfigList
()
{
var
query
=
JsonConvert
.
DeserializeObject
<
RB_Emp_Config_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
MallBaseId
=
RequestParm
.
MallBaseId
;
query
.
TenantId
=
RequestParm
.
TenantId
;
var
list
=
module
.
GetEmpConfigListModule
(
query
);
return
ApiResult
.
Success
(
data
:
list
);
}
/// <summary>
/// 新增修改员工配置
/// </summary>
/// <returns></returns>
public
ApiResult
SetEmpConfig
()
{
var
extModel
=
JsonConvert
.
DeserializeObject
<
RB_Emp_Config_Extend
>(
RequestParm
.
msg
.
ToString
());
extModel
.
MallBaseId
=
RequestParm
.
MallBaseId
;
extModel
.
TenantId
=
RequestParm
.
TenantId
;
var
flag
=
module
.
SetEmpConfigModule
(
extModel
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
endregion
}
}
\ No newline at end of file
Mall.WebApi/Controllers/User/MContentController.cs
0 → 100644
View file @
293b631f
This diff is collapsed.
Click to expand it.
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