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
a88cd95f
Commit
a88cd95f
authored
Dec 06, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务修改
parent
6fc6381f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
RB_Member_UserRepository.cs
Mall.Repository/User/RB_Member_UserRepository.cs
+13
-0
Mall.WindowsService.csproj
Mall.WindowsService/Mall.WindowsService.csproj
+6
-4
No files found.
Mall.Repository/User/RB_Member_UserRepository.cs
View file @
a88cd95f
...
...
@@ -16,6 +16,7 @@ namespace Mall.Repository.User
{
#
region
基础模块
/// <summary>
/// 分页列表
/// </summary>
...
...
@@ -1884,5 +1885,17 @@ GROUP BY u.Id)t";
builder
.
AppendFormat
(
" UPDATE rb_member_user SET BelongGroupIds='{0}' WHERE Id IN({1}) "
,
BelongGroupIds
,
UserIds
);
return
base
.
Execute
(
builder
.
ToString
())
>
0
;
}
/// <summary>
/// 获取七天后自动释放(定时任务在使用)
/// </summary>
/// <param name="tenantId"></param>
/// <param name="mallBaseId"></param>
/// <returns></returns>
public
List
<
RB_Member_User_Extend
>
AutoReleaseTheOffline
(
int
tenantId
,
int
mallBaseId
)
{
string
sql
=
$@"SELECT * FROM rb_member_user WHERE DownlineCondition=4 and IsDistributor = 0 and SuperiorId >0 AND DATE_ADD(CreateDate,INTERVAL 7 DAY) < '
{
Common
.
ConvertHelper
.
FormatTime
(
DateTime
.
Now
)}
'"
;
return
Get
<
RB_Member_User_Extend
>(
sql
).
ToList
();
}
}
}
Mall.WindowsService/Mall.WindowsService.csproj
View file @
a88cd95f
...
...
@@ -10,6 +10,12 @@
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Compile Remove="Model\**" />
<EmbeddedResource Remove="Model\**" />
<None Remove="Model\**" />
</ItemGroup>
<ItemGroup>
<None Remove="appsettings.Development.json" />
<None Remove="appsettings.json" />
...
...
@@ -37,8 +43,4 @@
<ProjectReference Include="..\Mall.Repository\Mall.Repository.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Model\" />
</ItemGroup>
</Project>
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