Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
ShopERP
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杜龙飞
ShopERP
Commits
24baaf06
Commit
24baaf06
authored
Sep 04, 2025
by
PC-20220610JUCQ\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
<develop>:(Web 端)<无> ShopERP 项目前端代码提交。
parent
3c876185
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
376 additions
and
0 deletions
+376
-0
CoreCms.Net.IRepository/Order/ICoreOrderRepository.cs
+14
-0
CoreCms.Net.IServices/Order/ICoreOrderServices.cs
+16
-0
CoreCms.Net.Model/Entities/Order/CoreOrder.cs
+220
-0
CoreCms.Net.Repository/Order/CoreOrderRepository.cs
+33
-0
CoreCms.Net.Services/Order/CoreOrderServices.cs
+31
-0
documentFile/mysql.db/coreorder.sql
+62
-0
No files found.
CoreCms.Net.IRepository/Order/ICoreOrderRepository.cs
0 → 100644
View file @
24baaf06
using
CoreCms.Net.Model.Entities
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
CoreCms.Net.IRepository.Order
{
public
interface
ICoreOrderRepository
:
IBaseRepository
<
CoreOrder
>
{
Task
<
List
<
CoreOrder
>>
GetListAsync
();
}
}
CoreCms.Net.IServices/Order/ICoreOrderServices.cs
0 → 100644
View file @
24baaf06
using
CoreCms.Net.Model.Entities
;
using
SqlSugar
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq.Expressions
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
CoreCms.Net.IServices.Order
{
public
interface
ICoreOrderServices
:
IBaseServices
<
CoreOrder
>
{
}
}
CoreCms.Net.Model/Entities/Order/CoreOrder.cs
0 → 100644
View file @
24baaf06
using
SqlSugar
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
CoreCms.Net.Model.Entities
{
/// <summary>
/// 订单表
/// </summary>
[
SugarTable
(
"coreorder"
)]
public
class
CoreOrder
{
/// <summary>
/// 订单号
/// </summary>
[
SugarColumn
(
ColumnName
=
"orderId"
,
ColumnDataType
=
"varchar"
,
Length
=
20
,
IsPrimaryKey
=
true
,
IsNullable
=
false
,
ColumnDescription
=
"订单号"
)]
public
string
OrderId
{
get
;
set
;
}
/// <summary>
/// 商品总价
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"decimal(10,2)"
,
ColumnDescription
=
"商品总价"
)]
public
decimal
GoodsAmount
{
get
;
set
;
}
/// <summary>
/// 已支付的金额
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"decimal(10,2)"
,
ColumnDescription
=
"已支付的金额"
)]
public
decimal
PayedAmount
{
get
;
set
;
}
/// <summary>
/// 订单实际销售总额
/// </summary>
[
SugarColumn
(
ColumnDataType
=
"decimal(10,2)"
,
ColumnDescription
=
"订单实际销售总额"
)]
public
decimal
OrderAmount
{
get
;
set
;
}
/// <summary>
/// 币种
/// </summary>
[
SugarColumn
(
ColumnName
=
"currencyCode"
,
ColumnDataType
=
"varchar"
,
Length
=
100
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"币种"
)]
public
string
CurrencyCode
{
get
;
set
;
}
/// <summary>
/// 库存分配状态
/// </summary>
[
SugarColumn
(
ColumnName
=
"stockStatus"
,
ColumnDataType
=
"int"
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"库存分配状态"
)]
public
int
?
StockStatus
{
get
;
set
;
}
/// <summary>
/// 支付状态
/// </summary>
[
SugarColumn
(
ColumnName
=
"payStatus"
,
ColumnDataType
=
"int"
,
IsNullable
=
false
,
ColumnDescription
=
"支付状态"
)]
public
int
PayStatus
{
get
;
set
;
}
/// <summary>
/// 发货状态
/// </summary>
[
SugarColumn
(
ColumnName
=
"shipStatus"
,
ColumnDataType
=
"int"
,
IsNullable
=
false
,
ColumnDescription
=
"发货状态"
)]
public
int
ShipStatus
{
get
;
set
;
}
/// <summary>
/// 订单状态
/// </summary>
[
SugarColumn
(
ColumnName
=
"status"
,
ColumnDataType
=
"int"
,
IsNullable
=
false
,
ColumnDescription
=
"订单状态"
)]
public
int
Status
{
get
;
set
;
}
/// <summary>
/// 订单类型
/// </summary>
[
SugarColumn
(
ColumnName
=
"orderType"
,
ColumnDataType
=
"int"
,
IsNullable
=
false
,
ColumnDescription
=
"订单类型"
)]
public
int
OrderType
{
get
;
set
;
}
/// <summary>
/// 支付时间
/// </summary>
[
SugarColumn
(
ColumnName
=
"paymentTime"
,
ColumnDataType
=
"datetime"
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"支付时间"
)]
public
DateTime
?
PaymentTime
{
get
;
set
;
}
/// <summary>
/// 配送方式ID 关联ship.id
/// </summary>
[
SugarColumn
(
ColumnName
=
"logisticsId"
,
ColumnDataType
=
"int"
,
IsNullable
=
false
,
ColumnDescription
=
"配送方式ID 关联ship.id"
)]
public
int
LogisticsId
{
get
;
set
;
}
/// <summary>
/// 配送方式名称
/// </summary>
[
SugarColumn
(
ColumnName
=
"logisticsName"
,
ColumnDataType
=
"varchar"
,
Length
=
50
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"配送方式名称"
)]
public
string
LogisticsName
{
get
;
set
;
}
/// <summary>
/// 配送费用
/// </summary>
[
SugarColumn
(
ColumnName
=
"costFreight"
,
ColumnDataType
=
"decimal(10,2)"
,
ColumnDescription
=
"配送费用"
)]
public
decimal
CostFreight
{
get
;
set
;
}
/// <summary>
/// 店铺名称
/// </summary>
[
SugarColumn
(
ColumnName
=
"sellerId"
,
ColumnDataType
=
"varchar"
,
Length
=
50
,
IsNullable
=
false
,
ColumnDescription
=
"店铺名称"
)]
public
string
SellerId
{
get
;
set
;
}
/// <summary>
/// 收货人FirstName
/// </summary>
[
SugarColumn
(
ColumnName
=
"FirstName"
,
ColumnDataType
=
"varchar"
,
Length
=
100
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"收货人FirstName"
)]
public
string
FirstName
{
get
;
set
;
}
/// <summary>
/// 收货人LastName
/// </summary>
[
SugarColumn
(
ColumnName
=
"LastName"
,
ColumnDataType
=
"varchar"
,
Length
=
100
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"收货人LastName"
)]
public
string
LastName
{
get
;
set
;
}
/// <summary>
/// 收货地址1
/// </summary>
[
SugarColumn
(
ColumnName
=
"Address1"
,
ColumnDataType
=
"varchar"
,
Length
=
200
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"收货地址1"
)]
public
string
Address1
{
get
;
set
;
}
/// <summary>
/// 收货地址2
/// </summary>
[
SugarColumn
(
ColumnName
=
"Address2"
,
ColumnDataType
=
"varchar"
,
Length
=
200
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"收货地址2"
)]
public
string
Address2
{
get
;
set
;
}
/// <summary>
/// 邮编
/// </summary>
[
SugarColumn
(
ColumnName
=
"PostCode"
,
ColumnDataType
=
"varchar"
,
Length
=
50
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"邮编"
)]
public
string
PostCode
{
get
;
set
;
}
/// <summary>
/// 国家
/// </summary>
[
SugarColumn
(
ColumnName
=
"Country"
,
ColumnDataType
=
"varchar"
,
Length
=
100
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"国家"
)]
public
string
Country
{
get
;
set
;
}
/// <summary>
/// 国家编码
/// </summary>
[
SugarColumn
(
ColumnName
=
"CountryCode"
,
ColumnDataType
=
"varchar"
,
Length
=
50
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"国家编码"
)]
public
string
CountryCode
{
get
;
set
;
}
/// <summary>
/// 州/省
/// </summary>
[
SugarColumn
(
ColumnName
=
"Province"
,
ColumnDataType
=
"varchar"
,
Length
=
100
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"州/省"
)]
public
string
Province
{
get
;
set
;
}
/// <summary>
/// 城市
/// </summary>
[
SugarColumn
(
ColumnName
=
"City"
,
ColumnDataType
=
"varchar"
,
Length
=
100
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"城市"
)]
public
string
City
{
get
;
set
;
}
/// <summary>
/// 跟踪号
/// </summary>
[
SugarColumn
(
ColumnName
=
"TrackingNumber"
,
ColumnDataType
=
"varchar"
,
Length
=
100
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"跟踪号"
)]
public
string
TrackingNumber
{
get
;
set
;
}
/// <summary>
/// 邮箱
/// </summary>
[
SugarColumn
(
ColumnName
=
"Email"
,
ColumnDataType
=
"varchar"
,
Length
=
100
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"邮箱"
)]
public
string
Email
{
get
;
set
;
}
/// <summary>
/// 电话号码
/// </summary>
[
SugarColumn
(
ColumnName
=
"PhoneNO"
,
ColumnDataType
=
"varchar"
,
Length
=
100
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"电话号码"
)]
public
string
PhoneNO
{
get
;
set
;
}
/// <summary>
/// 商品总重量
/// </summary>
[
SugarColumn
(
ColumnName
=
"weight"
,
ColumnDataType
=
"decimal(10,2)"
,
ColumnDescription
=
"商品总重量"
)]
public
decimal
Weight
{
get
;
set
;
}
/// <summary>
/// 税号
/// </summary>
[
SugarColumn
(
ColumnName
=
"taxCode"
,
ColumnDataType
=
"varchar"
,
Length
=
50
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"税号"
)]
public
string
TaxCode
{
get
;
set
;
}
/// <summary>
/// 卖家备注
/// </summary>
[
SugarColumn
(
ColumnName
=
"mark"
,
ColumnDataType
=
"varchar"
,
Length
=
510
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"卖家备注"
)]
public
string
Mark
{
get
;
set
;
}
/// <summary>
/// 用户id
/// </summary>
[
SugarColumn
(
ColumnName
=
"userId"
,
ColumnDataType
=
"int"
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"用户id"
)]
public
int
?
UserId
{
get
;
set
;
}
/// <summary>
/// 订单来源
/// </summary>
[
SugarColumn
(
ColumnName
=
"source"
,
ColumnDataType
=
"int"
,
IsNullable
=
false
,
ColumnDescription
=
"订单来源"
)]
public
int
Source
{
get
;
set
;
}
/// <summary>
/// 创建时间
/// </summary>
[
SugarColumn
(
ColumnName
=
"createTime"
,
ColumnDataType
=
"datetime"
,
IsNullable
=
false
,
ColumnDescription
=
"创建时间"
)]
public
DateTime
CreateTime
{
get
;
set
;
}
/// <summary>
/// 更新时间
/// </summary>
[
SugarColumn
(
ColumnName
=
"updateTime"
,
ColumnDataType
=
"datetime"
,
IsNullable
=
true
,
DefaultValue
=
null
,
ColumnDescription
=
"更新时间"
)]
public
DateTime
?
UpdateTime
{
get
;
set
;
}
}
}
CoreCms.Net.Repository/Order/CoreOrderRepository.cs
0 → 100644
View file @
24baaf06
using
CoreCms.Net.IRepository
;
using
CoreCms.Net.IRepository.Order
;
using
CoreCms.Net.IRepository.UnitOfWork
;
using
CoreCms.Net.Model.Entities
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
CoreCms.Net.Repository.Order
{
/// <summary>
/// 订单数据访问层
/// </summary>
public
class
CoreOrderRepository
:
BaseRepository
<
CoreOrder
>,
ICoreOrderRepository
{
public
CoreOrderRepository
(
IUnitOfWork
unitOfWork
)
:
base
(
unitOfWork
)
{
}
public
async
Task
<
List
<
CoreOrder
>>
GetListAsync
()
{
return
await
DbClient
.
Queryable
<
CoreOrder
>().
ToListAsync
();
}
}
}
CoreCms.Net.Services/Order/CoreOrderServices.cs
0 → 100644
View file @
24baaf06
using
CoreCms.Net.IRepository
;
using
CoreCms.Net.IRepository.Order
;
using
CoreCms.Net.IServices
;
using
CoreCms.Net.IServices.Order
;
using
CoreCms.Net.Model.Entities
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
CoreCms.Net.Services.Order
{
public
class
CoreOrderServices
:
BaseServices
<
CoreOrder
>,
ICoreOrderServices
{
private
readonly
ICoreOrderRepository
_dal
;
public
CoreOrderServices
(
ICoreOrderRepository
dal
)
{
_dal
=
dal
;
}
public
async
Task
<
List
<
CoreOrder
>>
GetListAsync
()
{
return
await
_dal
.
GetListAsync
();
}
}
}
documentFile/mysql.db/coreorder.sql
0 → 100644
View file @
24baaf06
/*
Navicat Premium Data Transfer
Source Server : 192.168.8.109_Mysql
Source Server Type : MySQL
Source Server Version : 80027
Source Host : 192.168.8.109:3306
Source Schema : shoperp
Target Server Type : MySQL
Target Server Version : 80027
File Encoding : 65001
Date: 04/09/2025 16:33:54
*/
SET
NAMES
utf8mb4
;
SET
FOREIGN_KEY_CHECKS
=
0
;
-- ----------------------------
-- Table structure for corecmsorder
-- ----------------------------
DROP
TABLE
IF
EXISTS
`coreorder`
;
CREATE
TABLE
`coreorder`
(
`orderId`
varchar
(
20
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'订单号'
,
`goodsAmount`
decimal
(
10
,
2
)
NOT
NULL
COMMENT
'商品总价'
,
`payedAmount`
decimal
(
10
,
2
)
NOT
NULL
COMMENT
'已支付的金额'
,
`orderAmount`
decimal
(
10
,
2
)
NOT
NULL
COMMENT
'订单实际销售总额'
,
`currencyCode`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'币种'
,
`stockStatus`
int
NULL
DEFAULT
NULL
COMMENT
'库存分配状态'
,
`payStatus`
int
NOT
NULL
COMMENT
'支付状态'
,
`shipStatus`
int
NOT
NULL
COMMENT
'发货状态'
,
`status`
int
NOT
NULL
COMMENT
'订单状态'
,
`orderType`
int
NOT
NULL
COMMENT
'订单类型'
,
`paymentTime`
datetime
NULL
DEFAULT
NULL
COMMENT
'支付时间'
,
`logisticsId`
int
NOT
NULL
COMMENT
'配送方式ID 关联ship.id'
,
`logisticsName`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'配送方式名称'
,
`costFreight`
decimal
(
10
,
2
)
NOT
NULL
COMMENT
'配送费用'
,
`sellerId`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NOT
NULL
COMMENT
'店铺名称'
,
`FirstName`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'收货人FirstName'
,
`LastName`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'收货人LastName'
,
`Address1`
varchar
(
200
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'收货地址1'
,
`Address2`
varchar
(
200
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'收货地址2'
,
`PostCode`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'邮编'
,
`Country`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'国家'
,
`CountryCode`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'国家编码'
,
`Province`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'州/省'
,
`City`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'城市'
,
`TrackingNumber`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'跟踪号'
,
`Email`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'邮箱'
,
`PhoneNO`
varchar
(
100
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'电话号码'
,
`weight`
decimal
(
10
,
2
)
NOT
NULL
COMMENT
'商品总重量'
,
`taxCode`
varchar
(
50
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'税号'
,
`mark`
varchar
(
510
)
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
NULL
DEFAULT
NULL
COMMENT
'卖家备注'
,
`userId`
int
NULL
DEFAULT
NULL
COMMENT
'用户id'
,
`source`
int
NOT
NULL
COMMENT
'订单来源'
,
`createTime`
datetime
NOT
NULL
COMMENT
'创建时间'
,
`updateTime`
datetime
NULL
DEFAULT
NULL
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`orderId`
)
USING
BTREE
)
ENGINE
=
InnoDB
CHARACTER
SET
=
utf8
COLLATE
=
utf8_general_ci
COMMENT
=
'订单表'
ROW_FORMAT
=
DYNAMIC
;
SET
FOREIGN_KEY_CHECKS
=
1
;
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