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
960f6458
Commit
960f6458
authored
Aug 18, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
440cc985
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
GroupBuyActivityModule_Edit.cs
Mall.Module.Product/GroupBuyActivityModule_Edit.cs
+5
-6
GroupBuyActivityModule_Query.cs
Mall.Module.Product/GroupBuyActivityModule_Query.cs
+1
-3
RB_Groupbuy_Activity_SpecificationRepository.cs
...y/Product/RB_Groupbuy_Activity_SpecificationRepository.cs
+1
-1
No files found.
Mall.Module.Product/GroupBuyActivityModule_Edit.cs
View file @
960f6458
...
...
@@ -57,7 +57,6 @@ namespace Mall.Module.Product
{
nameof
(
RB_Groupbuy_Activity_Extend
.
Pieces
),
extModel
.
Pieces
},
{
nameof
(
RB_Groupbuy_Activity_Extend
.
Forehead
),
extModel
.
Forehead
},
{
nameof
(
RB_Groupbuy_Activity_Extend
.
Is_Area_Limit
),
extModel
.
Is_Area_Limit
},
//{ nameof(RB_Groupbuy_Activity_Extend.Area_limit),extModel.Area_limit},
{
nameof
(
RB_Groupbuy_Activity_Extend
.
Is_quick_shop
),
extModel
.
Is_quick_shop
},
{
nameof
(
RB_Groupbuy_Activity_Extend
.
Give_integral
),
extModel
.
Give_integral
},
{
nameof
(
RB_Groupbuy_Activity_Extend
.
Give_integral_type
),
extModel
.
Give_integral_type
},
...
...
@@ -98,7 +97,7 @@ namespace Mall.Module.Product
/// <returns></returns>
private
bool
SetGroupBuyAreaModule
(
RB_Groupbuy_Activity_Extend
extModel
)
{
bool
flag
=
fals
e
;
bool
flag
=
tru
e
;
var
alist
=
GetGroupBuyAreaModule
(
new
RB_GroupBuy_Area_Extend
()
{
GoodsId
=
extModel
.
GoodId
,
TenantId
=
extModel
.
TenantId
,
MallBaseId
=
extModel
.
MallBaseId
});
var
insertList1
=
extModel
.
AreaList
.
Where
(
x
=>
!
alist
.
Select
(
y
=>
y
.
AreaId
).
Contains
(
x
.
AreaId
)).
ToList
();
var
deleteList1
=
alist
.
Where
(
x
=>
!
extModel
.
AreaList
.
Select
(
y
=>
y
.
AreaId
).
Contains
(
x
.
AreaId
)).
ToList
();
...
...
@@ -120,7 +119,7 @@ namespace Mall.Module.Product
{
flag
=
groupbuy_AreaRepository
.
Delete
(
item
.
Id
)>
0
;
}
return
f
alse
;
return
f
lag
;
}
/// <summary>
...
...
@@ -237,7 +236,7 @@ namespace Mall.Module.Product
if
(
sv2list
.
Count
()
!=
supmodel
.
SpecificationValueList
.
Count
()
||
sv2list
.
Count
()
!=
supmodel
.
SpecificationValueList
.
Where
(
x
=>
x
.
Id
>
0
).
Count
())
{
isChange
=
true
;
groupbuy_Activity_SpecificationValueRepository
.
Delete
(
new
WhereHelper
(
nameof
(
RB_Groupbuy_Activity_Specificationvalue_Extend
.
GoodsId
),
extModel
.
GoodId
)
);
groupbuy_Activity_SpecificationValueRepository
.
Delete
Batch
(
sv2list
);
foreach
(
var
specValueItem
in
supmodel
.
SpecificationValueList
)
{
flag
=
groupbuy_Activity_SpecificationValueRepository
.
Insert
(
new
RB_Groupbuy_Activity_Specificationvalue_Extend
()
...
...
@@ -264,7 +263,7 @@ namespace Mall.Module.Product
{
{
nameof
(
RB_Groupbuy_Activity_Specificationvalue_Extend
.
Image
),
supModel1
.
Image
},
{
nameof
(
RB_Groupbuy_Activity_Specificationvalue_Extend
.
Name
),
supModel1
.
Name
},
{
nameof
(
RB_Groupbuy_Activity_Specificationvalue_Extend
.
Sort
),
supModel1
.
Sort
}
{
nameof
(
RB_Groupbuy_Activity_Specificationvalue_Extend
.
Sort
),
supModel1
.
Sort
}
,
};
flag
=
groupbuy_Activity_SpecificationValueRepository
.
Update
(
specValueFileds
,
new
WhereHelper
(
nameof
(
RB_Groupbuy_Activity_Specificationvalue_Extend
.
Id
),
qitem
.
Id
));
}
...
...
@@ -277,7 +276,7 @@ namespace Mall.Module.Product
{
isChange
=
true
;
//删除规格价格
groupbuy_Activity_SpecificationPriceRepository
.
Delete
One
(
new
WhereHelper
(
nameof
(
RB_Groupbuy_Activity_Specificationprice_Extend
.
GoodsId
),
extModel
.
GoodId
)
);
groupbuy_Activity_SpecificationPriceRepository
.
Delete
Batch
(
specPricelist
);
foreach
(
var
priceItem
in
extModel
.
SpecificationPriceList
)
{
var
priceModel
=
new
RB_Groupbuy_Activity_Specificationprice_Extend
()
...
...
Mall.Module.Product/GroupBuyActivityModule_Query.cs
View file @
960f6458
...
...
@@ -281,8 +281,6 @@ namespace Mall.Module.Product
GoodsId
=
extModel
.
GoodId
,
});
if
(
groupStepList
!=
null
&&
groupStepList
.
Count
>
0
)
{
foreach
(
var
item
in
groupStepList
)
...
...
@@ -379,7 +377,7 @@ namespace Mall.Module.Product
extModel
.
FormsName
=
"默认表单"
;
}
extModel
.
SpecificationList
=
specificationList
;
extModel
.
SpecificationPriceList
=
specPriceList
;
extModel
.
SpecificationPriceList
=
specPriceList
.
OrderBy
(
qitem
=>
qitem
.
SortNum
).
ToList
()
;
extModel
.
GroupList
=
groupStepList
;
}
return
extModel
;
...
...
Mall.Repository/Product/RB_Groupbuy_Activity_SpecificationRepository.cs
View file @
960f6458
...
...
@@ -41,7 +41,7 @@ namespace Mall.Repository.Product
{
where
+=
$@" and
{
nameof
(
RB_Groupbuy_Activity_Specificationprice_Extend
.
GoodsId
)}
in(
{
dmodel
.
GoodsIds
}
)"
;
}
string
sql
=
$@"select * from rb_groupbuy_activity_specificationprice where
{
where
}
order by Id desc
"
;
string
sql
=
$@"select * from rb_groupbuy_activity_specificationprice where
{
where
}
"
;
return
Get
<
RB_Groupbuy_Activity_Specificationprice_Extend
>(
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