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
d6a18812
Commit
d6a18812
authored
Jul 31, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
4da34789
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
RB_Supplier.cs
Mall.Model/Entity/User/RB_Supplier.cs
+11
-0
RB_Supplies_CheckRepository.cs
Mall.Repository/Property/RB_Supplies_CheckRepository.cs
+1
-3
PropertyController.cs
Mall.WebApi/Controllers/Property/PropertyController.cs
+13
-1
No files found.
Mall.Model/Entity/User/RB_Supplier.cs
View file @
d6a18812
...
...
@@ -80,5 +80,16 @@ namespace Mall.Model.Entity.User
/// </summary>
public
int
SupplierStatus
{
get
;
set
;
}
/// <summary>
/// 供应商关联人
/// </summary>
public
int
Introducer
{
get
;
set
;
}
/// <summary>
/// 供应商关联人返佣比例
/// </summary>
public
decimal
CommissionRate
{
get
;
set
;
}
}
}
Mall.Repository/Property/RB_Supplies_CheckRepository.cs
View file @
d6a18812
...
...
@@ -70,11 +70,9 @@ namespace Mall.Repository.Property
}
if
(
dmodel
.
EndDate
.
HasValue
)
{
where
+=
$" and
{
nameof
(
RB_Supplies_Check_Extend
.
Start
Date
)}
>='
{
dmodel
.
EndDate
}
' "
;
where
+=
$" and
{
nameof
(
RB_Supplies_Check_Extend
.
End
Date
)}
>='
{
dmodel
.
EndDate
}
' "
;
}
if
(!
string
.
IsNullOrWhiteSpace
(
dmodel
.
Periods
))
{
where
+=
" and "
+
nameof
(
RB_Supplies_Check_Extend
.
Periods
)
+
" like '%"
+
dmodel
.
Periods
+
"%'"
;
...
...
Mall.WebApi/Controllers/Property/PropertyController.cs
View file @
d6a18812
...
...
@@ -294,7 +294,7 @@ namespace Mall.WebApi.Controllers.MallBase
}
//判断当前仓库是否在盘点中2020-07-28 Add By:W
var
suppliesCheckList
=
propertyModule
.
GetSuppliesCheckList
(
new
RB_Supplies_Check_Extend
{
RB_Group_Id
=
requestParm
.
ERPGroupId
,
StartDate
=
System
.
DateTime
.
Now
,
EndDate
=
System
.
DateTime
.
Now
,
WarehouseId
=
demodel
.
WareHouseId
??
0
,
CheckState
=
Common
.
Enum
.
Property
.
SuppliesCheckStatusEnum
.
InTheInventory
});
var
suppliesCheckList
=
propertyModule
.
GetSuppliesCheckList
(
new
RB_Supplies_Check_Extend
{
RB_Group_Id
=
requestParm
.
ERPGroupId
,
StartDate
=
System
.
DateTime
.
Now
,
EndDate
=
System
.
DateTime
.
Now
,
WarehouseId
=
demodel
.
WareHouseId
??
0
,
CheckState
=
Common
.
Enum
.
Property
.
SuppliesCheckStatusEnum
.
InTheInventory
});
if
(
suppliesCheckList
!=
null
&&
suppliesCheckList
.
Any
())
{
return
ApiResult
.
ParamIsNull
(
"仓库盘点中,不能入库"
);
...
...
@@ -458,5 +458,17 @@ namespace Mall.WebApi.Controllers.MallBase
}
#
endregion
#
region
获取盘点中的仓库
public
ApiResult
GetSuppliesCheckList
()
{
var
requestParm
=
RequestParm
;
//判断当前仓库是否在盘点中2020-07-28 Add By:W
var
suppliesCheckList
=
propertyModule
.
GetSuppliesCheckList
(
new
RB_Supplies_Check_Extend
{
RB_Group_Id
=
requestParm
.
ERPGroupId
,
StartDate
=
System
.
DateTime
.
Now
,
EndDate
=
System
.
DateTime
.
Now
,
CheckState
=
Common
.
Enum
.
Property
.
SuppliesCheckStatusEnum
.
InTheInventory
});
return
ApiResult
.
Success
(
""
,
suppliesCheckList
);
}
#
endregion
}
}
\ No newline at end of file
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