Commit a88cd95f authored by 黄奎's avatar 黄奎

定时任务修改

parent 6fc6381f
...@@ -16,6 +16,7 @@ namespace Mall.Repository.User ...@@ -16,6 +16,7 @@ namespace Mall.Repository.User
{ {
#region 基础模块 #region 基础模块
/// <summary> /// <summary>
/// 分页列表 /// 分页列表
/// </summary> /// </summary>
...@@ -1884,5 +1885,17 @@ GROUP BY u.Id)t"; ...@@ -1884,5 +1885,17 @@ GROUP BY u.Id)t";
builder.AppendFormat(" UPDATE rb_member_user SET BelongGroupIds='{0}' WHERE Id IN({1}) ", BelongGroupIds, UserIds); builder.AppendFormat(" UPDATE rb_member_user SET BelongGroupIds='{0}' WHERE Id IN({1}) ", BelongGroupIds, UserIds);
return base.Execute(builder.ToString()) > 0; 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();
}
} }
} }
...@@ -10,6 +10,12 @@ ...@@ -10,6 +10,12 @@
<PlatformTarget>x64</PlatformTarget> <PlatformTarget>x64</PlatformTarget>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<Compile Remove="Model\**" />
<EmbeddedResource Remove="Model\**" />
<None Remove="Model\**" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<None Remove="appsettings.Development.json" /> <None Remove="appsettings.Development.json" />
<None Remove="appsettings.json" /> <None Remove="appsettings.json" />
...@@ -37,8 +43,4 @@ ...@@ -37,8 +43,4 @@
<ProjectReference Include="..\Mall.Repository\Mall.Repository.csproj" /> <ProjectReference Include="..\Mall.Repository\Mall.Repository.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Model\" />
</ItemGroup>
</Project> </Project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment