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
43386d78
Commit
43386d78
authored
Jul 06, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
224e2f15
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
1 deletion
+64
-1
RequestParm.cs
Mall.Common/API/RequestParm.cs
+4
-0
Mall.Module.Property.csproj
Mall.Module.Property/Mall.Module.Property.csproj
+7
-0
PropertyModule.cs
Mall.Module.Property/PropertyModule.cs
+13
-0
PropertyController.cs
Mall.WebApi/Controllers/Property/PropertyController.cs
+39
-1
Mall.WebApi.csproj
Mall.WebApi/Mall.WebApi.csproj
+1
-0
No files found.
Mall.Common/API/RequestParm.cs
View file @
43386d78
...
...
@@ -88,6 +88,10 @@ namespace Mall.Common.API
/// </summary>
public
int
ERPEmpId
{
get
;
set
;
}
/// <summary>
/// erp公司id
/// </summary>
public
int
ERPBranchId
{
get
;
set
;
}
/// <summary>
/// erp集团id
/// </summary>
public
int
ERPGroupId
{
get
;
set
;
}
...
...
Mall.Module.Property/Mall.Module.Property.csproj
View file @
43386d78
...
...
@@ -4,4 +4,11 @@
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Mall.CacheManager\Mall.CacheManager.csproj" />
<ProjectReference Include="..\Mall.Common\Mall.Common.csproj" />
<ProjectReference Include="..\Mall.Model\Mall.Model.csproj" />
<ProjectReference Include="..\Mall.Repository\Mall.Repository.csproj" />
</ItemGroup>
</Project>
Mall.Module.Property/PropertyModule.cs
View file @
43386d78
...
...
@@ -94,6 +94,19 @@ namespace Mall.Module.Property
return
list
;
}
/// <summary>
/// 同步商品信息至资产物料
/// </summary>
/// <param name="wareHouseId"></param>
/// <param name="categoryIdList"></param>
/// <param name="eRPEmpId"></param>
/// <param name="eRPGroupId"></param>
/// <returns></returns>
public
bool
SetSyncGoodsToMaterial
(
int
wareHouseId
,
List
<
int
>
categoryIdList
,
int
eRPEmpId
,
int
eRPGroupId
)
{
throw
new
NotImplementedException
();
}
#
endregion
}
}
Mall.WebApi/Controllers/Property/PropertyController.cs
View file @
43386d78
...
...
@@ -60,12 +60,50 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
SuppliesModel
,
x
.
SuppliesNum
,
x
.
InventoryNum
,
UpdateBy
=
CacheManager
.
User
.
UserReidsCache
.
GetEmployee
(
x
.
UpdateBy
)?.
EmName
??
""
,
//
UpdateBy = CacheManager.User.UserReidsCache.GetEmployee(x.UpdateBy)?.EmName ?? "",
UpdateDate
=
x
.
UpdateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
});
return
ApiResult
.
Success
(
""
,
pagelist
);
}
/// <summary>
/// 同步商品信息至资产耗材
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
SetSyncGoodsToMaterial
()
{
var
requestParm
=
RequestParm
;
JObject
parms
=
JObject
.
Parse
(
requestParm
.
msg
.
ToString
());
int
WareHouseId
=
parms
.
GetInt
(
"WareHouseId"
,
0
);
//仓库id
string
CategoryIds
=
parms
.
GetStringValue
(
"CategoryIds"
);
//同步的商品分类
if
(
WareHouseId
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
"请传递仓库id"
);
}
if
(
string
.
IsNullOrEmpty
(
CategoryIds
)
||
CategoryIds
==
"[]"
)
{
return
ApiResult
.
ParamIsNull
(
"请传递分类"
);
}
List
<
int
>
categoryIdList
=
new
List
<
int
>();
try
{
categoryIdList
=
JsonConvert
.
DeserializeObject
<
List
<
int
>>(
CategoryIds
);
}
catch
(
Exception
)
{
return
ApiResult
.
ParamIsNull
(
"分类格式有误"
);
}
bool
flag
=
propertyModule
.
SetSyncGoodsToMaterial
(
WareHouseId
,
categoryIdList
,
requestParm
.
ERPEmpId
,
requestParm
.
ERPGroupId
);
if
(
flag
)
{
return
ApiResult
.
Success
();
}
else
{
return
ApiResult
.
Failed
();
}
}
#
endregion
}
}
\ No newline at end of file
Mall.WebApi/Mall.WebApi.csproj
View file @
43386d78
...
...
@@ -22,6 +22,7 @@
<ProjectReference Include="..\Mall.Module.BaseSetUp\Mall.Module.BaseSetUp.csproj" />
<ProjectReference Include="..\Mall.Module.MarketingCenter\Mall.Module.MarketingCenter.csproj" />
<ProjectReference Include="..\Mall.Module.Product\Mall.Module.Product.csproj" />
<ProjectReference Include="..\Mall.Module.Property\Mall.Module.Property.csproj" />
<ProjectReference Include="..\Mall.Module.User\Mall.Module.User.csproj" />
<ProjectReference Include="..\Mall.ThirdCore\Mall.ThirdCore.csproj" />
</ItemGroup>
...
...
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