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
2043c69d
Commit
2043c69d
authored
Jul 15, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
881ceb4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
110 additions
and
61 deletions
+110
-61
ProductController.cs
Mall.WebApi/Controllers/Product/ProductController.cs
+110
-61
No files found.
Mall.WebApi/Controllers/Product/ProductController.cs
View file @
2043c69d
...
...
@@ -1811,72 +1811,121 @@ namespace Mall.WebApi.Controllers.MallBase
JObject
parms
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
RB_Goods_Extend
demodel
=
new
RB_Goods_Extend
()
{
Id
=
parms
.
GetInt
(
"Id"
),
Name
=
parms
.
GetStringValue
(
"Name"
),
VideoAddress
=
parms
.
GetStringValue
(
"VideoAddress"
),
CustomShareTitles
=
parms
.
GetStringValue
(
"CustomShareTitles"
),
CustomShareImage
=
parms
.
GetStringValue
(
"CustomShareImage"
),
CustomShareImagePath
=
parms
.
GetStringValue
(
"CustomShareImagePath"
),
IsLiveGoods
=
parms
.
GetInt
(
"IsLiveGoods"
),
GoodsStatus
=
parms
.
GetInt
(
"GoodsStatus"
),
InventoryNum
=
parms
.
GetInt
(
"InventoryNum"
),
DefaultSpecificationName
=
parms
.
GetStringValue
(
"DefaultSpecificationName"
),
SellingPrice
=
parms
.
GetDecimal
(
"SellingPrice"
),
OriginalPrice
=
parms
.
GetDecimal
(
"OriginalPrice"
),
Unit
=
parms
.
GetStringValue
(
"Unit"
),
CostPrice
=
parms
.
GetDecimal
(
"CostPrice"
),
IsGoodsNegotiable
=
parms
.
GetInt
(
"IsGoodsNegotiable"
),
SalesNum
=
parms
.
GetInt
(
"SalesNum"
),
GoodsNumbers
=
parms
.
GetStringValue
(
"GoodsNumbers"
),
IsCustomSpecification
=
parms
.
GetInt
(
"IsCustomSpecification"
),
GoodsWeight
=
parms
.
GetInt
(
"GoodsWeight"
),
IsDefaultService
=
parms
.
GetInt
(
"IsDefaultService"
),
FreightId
=
parms
.
GetInt
(
"FreightId"
),
FreightName
=
parms
.
GetStringValue
(
"FreightName"
),
FormsId
=
parms
.
GetInt
(
"FormsId"
,
-
1
),
FormsName
=
parms
.
GetStringValue
(
"FormsName"
),
LimitBuyGoodsNum
=
parms
.
GetInt
(
"LimitBuyGoodsNum"
,
-
1
),
LimitBuyOrderNum
=
parms
.
GetInt
(
"LimitBuyOrderNum"
,
-
1
),
IsAreaBuy
=
parms
.
GetInt
(
"IsAreaBuy"
),
IntegralPresent
=
parms
.
GetInt
(
"IntegralPresent"
),
IntegralPresentType
=
parms
.
GetInt
(
"IntegralPresentType"
),
PointsDeduction
=
parms
.
GetInt
(
"PointsDeduction"
),
PointsDeductionType
=
parms
.
GetInt
(
"PointsDeductionType"
),
IsMultipleDeduction
=
parms
.
GetInt
(
"IsMultipleDeduction"
),
GoodsDetails
=
parms
.
GetStringValue
(
"GoodsDetails"
),
SeparateDistribution
=
parms
.
GetInt
(
"SeparateDistribution"
),
SeparateDistributionType
=
parms
.
GetInt
(
"SeparateDistributionType"
),
SeparateDistributionMoneyType
=
parms
.
GetInt
(
"SeparateDistributionMoneyType"
),
EnjoyMember
=
parms
.
GetInt
(
"EnjoyMember"
),
SeparateSetMember
=
parms
.
GetInt
(
"SeparateSetMember"
),
IsQuickBuy
=
parms
.
GetInt
(
"IsQuickBuy"
),
FullNumPinkage
=
parms
.
GetInt
(
"FullNumPinkage"
),
FullMoneyPinkage
=
parms
.
GetDecimal
(
"FullMoneyPinkage"
),
SupplierId
=
parms
.
GetInt
(
"SupplierId"
),
Sort
=
parms
.
GetInt
(
"Sort"
),
Commission
=
parms
.
GetDecimal
(
"Commission"
),
PresentFXGrade
=
parms
.
GetInt
(
"PresentFXGrade"
),
PresentFXMonth
=
parms
.
GetInt
(
"PresentFXMonth"
),
Advertising
=
parms
.
GetStringValue
(
"Advertising"
),
SubName
=
parms
.
GetStringValue
(
"SubName"
),
ShelvesDate
=
parms
.
GetDateTime
(
"ShelvesDate"
),
DownDate
=
parms
.
GetDateTime
(
"DownDate"
),
SendArea
=
parms
.
GetStringValue
(
"SendArea"
),
VideoType
=
parms
.
GetInt
(
"VideoType"
),
GoodsPageType
=
(
GoodsPageTypeEnum
)
parms
.
GetInt
(
"GoodsPageType"
),
Remark
=
parms
.
GetStringValue
(
"Remark"
),
IsNoTax
=
parms
.
GetInt
(
"IsNoTax"
),
GoodsCountry
=
parms
.
GetStringValue
(
"GoodsCountry"
),
FatCode
=
parms
.
GetStringValue
(
"FatCode"
),
GoodsUrl
=
parms
.
GetStringValue
(
"GoodsUrl"
),
goodsLogo
=
parms
.
GetStringValue
(
"goodsLogo"
),
Id
=
parms
.
GetInt
(
"Id"
),
Name
=
parms
.
GetStringValue
(
"Name"
),
VideoAddress
=
parms
.
GetStringValue
(
"VideoAddress"
),
CustomShareTitles
=
parms
.
GetStringValue
(
"CustomShareTitles"
),
CustomShareImage
=
parms
.
GetStringValue
(
"CustomShareImage"
),
CustomShareImagePath
=
parms
.
GetStringValue
(
"CustomShareImagePath"
),
IsLiveGoods
=
parms
.
GetInt
(
"IsLiveGoods"
),
GoodsStatus
=
parms
.
GetInt
(
"GoodsStatus"
),
InventoryNum
=
parms
.
GetInt
(
"InventoryNum"
),
DefaultSpecificationName
=
parms
.
GetStringValue
(
"DefaultSpecificationName"
),
SellingPrice
=
parms
.
GetDecimal
(
"SellingPrice"
),
OriginalPrice
=
parms
.
GetDecimal
(
"OriginalPrice"
),
Unit
=
parms
.
GetStringValue
(
"Unit"
),
CostPrice
=
parms
.
GetDecimal
(
"CostPrice"
),
IsGoodsNegotiable
=
parms
.
GetInt
(
"IsGoodsNegotiable"
),
SalesNum
=
parms
.
GetInt
(
"SalesNum"
),
GoodsNumbers
=
parms
.
GetStringValue
(
"GoodsNumbers"
),
IsCustomSpecification
=
parms
.
GetInt
(
"IsCustomSpecification"
),
GoodsWeight
=
parms
.
GetInt
(
"GoodsWeight"
),
IsDefaultService
=
parms
.
GetInt
(
"IsDefaultService"
),
FreightId
=
parms
.
GetInt
(
"FreightId"
),
FreightName
=
parms
.
GetStringValue
(
"FreightName"
),
FormsId
=
parms
.
GetInt
(
"FormsId"
,
-
1
),
FormsName
=
parms
.
GetStringValue
(
"FormsName"
),
LimitBuyGoodsNum
=
parms
.
GetInt
(
"LimitBuyGoodsNum"
,
-
1
),
LimitBuyOrderNum
=
parms
.
GetInt
(
"LimitBuyOrderNum"
,
-
1
),
IsAreaBuy
=
parms
.
GetInt
(
"IsAreaBuy"
),
IntegralPresent
=
parms
.
GetInt
(
"IntegralPresent"
),
IntegralPresentType
=
parms
.
GetInt
(
"IntegralPresentType"
),
PointsDeduction
=
parms
.
GetInt
(
"PointsDeduction"
),
PointsDeductionType
=
parms
.
GetInt
(
"PointsDeductionType"
),
IsMultipleDeduction
=
parms
.
GetInt
(
"IsMultipleDeduction"
),
GoodsDetails
=
parms
.
GetStringValue
(
"GoodsDetails"
),
SeparateDistribution
=
parms
.
GetInt
(
"SeparateDistribution"
),
SeparateDistributionType
=
parms
.
GetInt
(
"SeparateDistributionType"
),
SeparateDistributionMoneyType
=
parms
.
GetInt
(
"SeparateDistributionMoneyType"
),
EnjoyMember
=
parms
.
GetInt
(
"EnjoyMember"
),
SeparateSetMember
=
parms
.
GetInt
(
"SeparateSetMember"
),
IsQuickBuy
=
parms
.
GetInt
(
"IsQuickBuy"
),
FullNumPinkage
=
parms
.
GetInt
(
"FullNumPinkage"
),
FullMoneyPinkage
=
parms
.
GetDecimal
(
"FullMoneyPinkage"
),
SupplierId
=
parms
.
GetInt
(
"SupplierId"
),
Sort
=
parms
.
GetInt
(
"Sort"
),
Commission
=
parms
.
GetDecimal
(
"Commission"
),
PresentFXGrade
=
parms
.
GetInt
(
"PresentFXGrade"
),
PresentFXMonth
=
parms
.
GetInt
(
"PresentFXMonth"
),
Advertising
=
parms
.
GetStringValue
(
"Advertising"
),
SubName
=
parms
.
GetStringValue
(
"SubName"
),
SendArea
=
parms
.
GetStringValue
(
"SendArea"
),
VideoType
=
parms
.
GetInt
(
"VideoType"
),
GoodsPageType
=
(
GoodsPageTypeEnum
)
parms
.
GetInt
(
"GoodsPageType"
),
Remark
=
parms
.
GetStringValue
(
"Remark"
),
IsNoTax
=
parms
.
GetInt
(
"IsNoTax"
),
GoodsCountry
=
parms
.
GetStringValue
(
"GoodsCountry"
),
FatCode
=
parms
.
GetStringValue
(
"FatCode"
),
GoodsUrl
=
parms
.
GetStringValue
(
"GoodsUrl"
),
goodsLogo
=
parms
.
GetStringValue
(
"goodsLogo"
),
};
if
(!
string
.
IsNullOrEmpty
(
parms
.
GetStringValue
(
"ShelvesDate"
)))
{
demodel
.
ShelvesDate
=
parms
.
GetDateTime
(
"ShelvesDate"
);
}
else
{
demodel
.
ShelvesDate
=
null
;
}
if
(!
string
.
IsNullOrEmpty
(
parms
.
GetStringValue
(
"DownDate"
)))
{
demodel
.
DownDate
=
parms
.
GetDateTime
(
"DownDate"
);
}
else
{
demodel
.
DownDate
=
null
;
}
int
IsKorea
=
parms
.
GetInt
(
"IsKorea"
,
0
);
//是否为韩国馆项目(1-是)
demodel
.
CategoryList
=
JsonHelper
.
DeserializeObject
<
List
<
RB_Goods_Category_Extend
>>(
parms
.
GetStringValue
(
"CategoryList"
));
demodel
.
CarouselImageList
=
JsonHelper
.
DeserializeObject
<
List
<
RB_ImageCommonModel
>>(
parms
.
GetStringValue
(
"CarouselImageList"
));
demodel
.
SpecificationList
=
JsonHelper
.
DeserializeObject
<
List
<
RB_Goods_Specification_Extend
>>(
parms
.
GetStringValue
(
"SpecificationList"
));
demodel
.
SpecificationPriceList
=
JsonHelper
.
DeserializeObject
<
List
<
RB_Goods_SpecificationPrice_Extend
>>(
parms
.
GetStringValue
(
"SpecificationPriceList"
));
demodel
.
SpecificationPriceList
=
new
List
<
RB_Goods_SpecificationPrice_Extend
>();
JArray
priceArray
=
JArray
.
Parse
(
parms
.
GetStringValue
(
"SpecificationPriceList"
));
foreach
(
var
item
in
priceArray
)
{
JObject
jObj
=
JObject
.
Parse
(
item
.
ToString
());
RB_Goods_SpecificationPrice_Extend
pModel
=
new
RB_Goods_SpecificationPrice_Extend
()
{
Commission
=
jObj
.
GetDecimal
(
"Commission"
),
CostMoney
=
jObj
.
GetDecimal
(
"CostMoney"
),
GoodsNumbers
=
jObj
.
GetStringValue
(
"GoodsNumbers"
),
GoodsWeight
=
jObj
.
GetInt
(
"GoodsWeight"
),
InventoryNum
=
jObj
.
GetInt
(
"InventoryNum"
),
SellingPrice
=
jObj
.
GetDecimal
(
"SellingPrice"
),
SpecificationSort
=
jObj
.
GetStringValue
(
"SpecificationSort"
),
AttrList
=
new
object
()
};
var
arrList
=
new
List
<
object
>();
JArray
sArray
=
JArray
.
Parse
(
jObj
.
GetStringValue
(
"AttrList"
));
foreach
(
var
sItem
in
sArray
)
{
JObject
sObj
=
JObject
.
Parse
(
sItem
.
ToString
());
arrList
.
Add
(
new
{
SName
=
sObj
.
GetStringValue
(
"SName"
),
SVId
=
sObj
.
GetInt
(
"SVId"
),
SVName
=
sObj
.
GetStringValue
(
"SVName"
)
});
}
pModel
.
AttrList
=
arrList
;
demodel
.
SpecificationPriceList
.
Add
(
pModel
);
}
demodel
.
ServiceList
=
JsonHelper
.
DeserializeObject
<
List
<
RB_ImageCommonModel
>>(
parms
.
GetStringValue
(
"ServiceList"
));
demodel
.
AreaList
=
JsonHelper
.
DeserializeObject
<
List
<
RB_Goods_Area_Extend
>>(
parms
.
GetStringValue
(
"AreaList"
));
demodel
.
DistributionCommissionList
=
JsonHelper
.
DeserializeObject
<
List
<
RB_Goods_DistributionCommission_Extend
>>(
parms
.
GetStringValue
(
"DistributionCommissionList"
));
...
...
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