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
442582d8
Commit
442582d8
authored
Jul 06, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电商库存操作日志
parent
029e3439
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
103 additions
and
0 deletions
+103
-0
RB_Property_Log.cs
Mall.Model/Entity/Property/RB_Property_Log.cs
+66
-0
RB_Goods_LogRepository.cs
Mall.Repository/Property/RB_Goods_LogRepository.cs
+37
-0
No files found.
Mall.Model/Entity/Property/RB_Property_Log.cs
0 → 100644
View file @
442582d8
using
Mall.Common.AOP
;
using
Mall.Common.Enum.User
;
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
Mall.Model.Entity.Property
{
/// <summary>
/// 电商库存系统日志表实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Property_Log
{
/// <summary>
/// Id
/// </summary>
public
int
Id
{
get
;
set
;
}
/// <summary>
/// 来源id
/// </summary>
public
int
?
SourceId
{
get
;
set
;
}
/// <summary>
/// 来源类型 1仓库操作 2商品操作 3 采购
/// </summary>
public
int
?
Type
{
get
;
set
;
}
/// <summary>
/// 操作内容
/// </summary>
public
string
Content
{
get
;
set
;
}
/// <summary>
/// 操作人
/// </summary>
public
int
CreateBy
{
get
;
set
;
}
/// <summary>
/// CreateDate
/// </summary>
public
DateTime
?
CreateDate
{
get
;
set
;
}
}
}
Mall.Repository/Property/RB_Goods_LogRepository.cs
0 → 100644
View file @
442582d8
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
Mall.Model.Entity.Property
;
using
System.Linq
;
using
Mall.Model.Entity.User
;
namespace
Mall.Repository.Property
{
/// <summary>
/// 商品订单日志仓储层
/// </summary>
public
class
RB_Property_LogRepository
:
RepositoryBase
<
RB_Property_Log
>
{
/// <summary>
/// 获取列表
/// </summary>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Property_Log
>
GetList
(
RB_Property_Log
dmodel
)
{
string
where
=
$" 1=1 "
;
if
(
dmodel
.
Type
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Property_Log
.
Type
)}
=
{
dmodel
.
Type
}
"
;
}
if
(
dmodel
.
SourceId
>
0
)
{
where
+=
$@" and
{
nameof
(
RB_Property_Log
.
SourceId
)}
=
{
dmodel
.
SourceId
}
"
;
}
string
sql
=
$@"SELECT * FROM RB_Property_Log where
{
where
}
order by Id asc"
;
return
Get
<
RB_Property_Log
>(
sql
).
ToList
();
}
}
}
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