Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
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
liudong1993
Property
Commits
11607f42
Commit
11607f42
authored
Jul 07, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物料返回 商品信息
parent
6226ec89
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
0 deletions
+41
-0
RB_Supplies_Material.cs
Property.Model/Entity/Supplies/RB_Supplies_Material.cs
+21
-0
RB_Supplies_Material_Extend.cs
...erty.Model/Extend/Supplies/RB_Supplies_Material_Extend.cs
+8
-0
SuppliesModule.cs
Property.Modele.FixedAssets/SuppliesModule.cs
+10
-0
SuppliesController.cs
Property.WebApi/Controllers/Property/SuppliesController.cs
+2
-0
No files found.
Property.Model/Entity/Supplies/RB_Supplies_Material.cs
View file @
11607f42
...
...
@@ -181,5 +181,26 @@ namespace Property.Model.Entity
get
;
set
;
}
/// <summary>
/// 商品id
/// </summary>
public
int
?
GoodsId
{
get
;
set
;
}
/// <summary>
/// 规格名称
/// </summary>
public
string
SpecificationName
{
get
;
set
;
}
/// <summary>
/// 规格Key
/// </summary>
public
string
SpecificationKey
{
get
;
set
;
}
/// <summary>
/// 商品分类ids
/// </summary>
public
string
GoodsCategoryIds
{
get
;
set
;
}
/// <summary>
/// 商品分类名称
/// </summary>
public
string
GoodsCategoryName
{
get
;
set
;
}
}
}
\ No newline at end of file
Property.Model/Extend/Supplies/RB_Supplies_Material_Extend.cs
View file @
11607f42
...
...
@@ -39,5 +39,13 @@ namespace Property.Model.Extend
/// 档案ids
/// </summary>
public
string
SuppliesIdStr
{
get
;
set
;
}
/// <summary>
/// 商品规格
/// </summary>
public
List
<
string
>
GoodsSpecificationList
{
get
;
set
;
}
/// <summary>
/// 商品分类
/// </summary>
public
List
<
string
>
GoodsCategoryList
{
get
;
set
;
}
}
}
\ No newline at end of file
Property.Modele.FixedAssets/SuppliesModule.cs
View file @
11607f42
...
...
@@ -120,6 +120,16 @@ namespace Property.Module.FixedAssets
item
.
ImageList
.
Add
(
Config
.
GetFileUrl
(
img
));
}
item
.
InventoryNum
=
iList
.
Where
(
x
=>
x
.
SuppliesId
==
item
.
Id
).
FirstOrDefault
()?.
Number
??
0
;
item
.
GoodsSpecificationList
=
new
List
<
string
>();
item
.
GoodsCategoryList
=
new
List
<
string
>();
if
(!
string
.
IsNullOrEmpty
(
item
.
SpecificationName
))
{
item
.
GoodsSpecificationList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
item
.
SpecificationName
);
}
if
(!
string
.
IsNullOrEmpty
(
item
.
GoodsCategoryName
))
{
item
.
GoodsCategoryList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
item
.
GoodsCategoryName
);
}
}
return
list
;
}
...
...
Property.WebApi/Controllers/Property/SuppliesController.cs
View file @
11607f42
...
...
@@ -50,6 +50,8 @@ namespace Property.WebApi.Controllers.User
x
.
SuppliesModel
,
x
.
SuppliesNum
,
x
.
InventoryNum
,
x
.
GoodsSpecificationList
,
x
.
GoodsCategoryList
,
UpdateBy
=
CacheManager
.
User
.
UserReidsCache
.
GetEmployee
(
x
.
UpdateBy
)?.
EmName
??
""
,
UpdateDate
=
x
.
UpdateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
});
...
...
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