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
4bd27590
Commit
4bd27590
authored
Sep 02, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
08981cac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
1 deletion
+31
-1
ShareModule.cs
Mall.Module.MarketingCenter/ShareModule.cs
+16
-0
RB_Share_FriendRepository.cs
Mall.Repository/MarketingCenter/RB_Share_FriendRepository.cs
+1
-0
RB_GoodsRepository.cs
Mall.Repository/Product/RB_GoodsRepository.cs
+1
-1
ShareController.cs
Mall.WebApi/Controllers/MarketingCenter/ShareController.cs
+13
-0
No files found.
Mall.Module.MarketingCenter/ShareModule.cs
View file @
4bd27590
...
...
@@ -326,6 +326,22 @@ namespace Mall.Module.MarketingCenter
return
flag
;
}
/// <summary>
/// 更新分享数量
/// </summary>
/// <param name="Id"></param>
/// <param name="ShareCount"></param>
/// <returns></returns>
public
bool
SetShareFriendCountModule
(
object
Id
,
int
ShareCount
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Share_Friend_Extend
.
ShareCount
),
ShareCount
},
};
bool
flag
=
share_FriendRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_Share_Friend_Extend
.
Id
),
Id
));
return
flag
;
}
/// <summary>
/// 更新文案
/// </summary>
...
...
Mall.Repository/MarketingCenter/RB_Share_FriendRepository.cs
View file @
4bd27590
...
...
@@ -65,6 +65,7 @@ WHERE 1=1 AND A.Status=0
builder
.
AppendFormat
(
" AND A.{0}<='{1} 23:59:59' "
,
nameof
(
RB_Share_Friend_Extend
.
CreateDate
),
Convert
.
ToDateTime
(
query
.
QEndDate
).
ToString
(
"yyyy-MM-dd"
));
}
}
builder
.
AppendFormat
(
" ORDER BY A.SortNum ASC "
);
return
GetPage
<
RB_Share_Friend_Extend
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
}
...
...
Mall.Repository/Product/RB_GoodsRepository.cs
View file @
4bd27590
...
...
@@ -413,7 +413,7 @@ WHERE {where} group by g.Id order by g.CreateDate desc";
}
if
(
dmodel
.
IsVideo
>
0
)
{
where
+=
$@" and IFNULL(g.
{
nameof
(
RB_Goods_Extend
.
VideoAddress
)}
<>'' "
;
where
+=
$@" and IFNULL(g.
{
nameof
(
RB_Goods_Extend
.
VideoAddress
)}
,'')
<>'' "
;
}
//默认综合【升序】
...
...
Mall.WebApi/Controllers/MarketingCenter/ShareController.cs
View file @
4bd27590
...
...
@@ -264,6 +264,19 @@ namespace Mall.WebApi.Controllers.MarketingCenter
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 更新排序
/// </summary>
/// <returns></returns>
public
ApiResult
SetShareFriendCount
()
{
JObject
parm
=
JObject
.
Parse
(
RequestParm
.
msg
.
ToString
());
int
Id
=
parm
.
GetInt
(
"Id"
,
0
);
int
ShareCount
=
parm
.
GetInt
(
"ShareCount"
,
0
);
bool
flag
=
shareModule
.
SetShareFriendCountModule
(
Id
,
ShareCount
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
/// <summary>
/// 更新文案
/// </summary>
...
...
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