Browse Source

公告需求更新

zmq 1 year ago
parent
commit
7b3fd80ba4

+ 3 - 1
src/hosts/ZhonTai.Host/Configs/appconfig.json

@@ -110,5 +110,7 @@
     "path": "/admin/health"
   },
   //H5域名
-  "H5WebSite": "http://dev.gl.zjdg.cn/"
+  "H5WebSite": "http://dev.gl.zjdg.cn/",
+  //平台默认抽成比率 5%
+  "TenantRatio": 5
 }

+ 5 - 1
src/platform/ZhonTai.Admin/Core/Configs/AppConfig.cs

@@ -116,6 +116,10 @@ public class AppConfig
     public QCloud QCloudSet { get; set; } = new QCloud();
 
     public InviteUrl InviteUrlSet { get; set; } = new InviteUrl();
+    /// <summary>
+    /// 平台默认抽成比率
+    /// </summary>
+    public decimal TenantRatio { get; set; }
     
 }
 
@@ -387,7 +391,7 @@ public class KuaKeConfig
     /// <summary>
     /// 行业信息
     /// </summary>
-    public string Industry { get; set; }
+    public string Industry { get; set; }    
 }
 
 public class QCloud

+ 5 - 1
src/platform/ZhonTai.Admin/Domain/Notice/NoticeEntity.cs

@@ -38,6 +38,10 @@ namespace ZhonTai.Admin.Domain.Notice
         /// <summary>
         /// 标签
         /// </summary>
-        public string Tags { get; set; }        
+        public string Tags { get; set; }
+        /// <summary>
+        /// 是否展示 1展示 0不展示
+        /// </summary>
+        public int IsShow { get; set; } = 0;
     }
 }

+ 4 - 0
src/platform/ZhonTai.Admin/Services/Notice/Dto/NoticeAddInput.cs

@@ -33,5 +33,9 @@ namespace ZhonTai.Admin.Services.Notice.Dto
         /// 纯文本内容
         /// </summary>        
         public string Desc { get; set; }
+        /// <summary>
+        /// 是否展示 1展示 0不展示
+        /// </summary>
+        public int IsShow { get; set; }
     }
 }

+ 2 - 1
src/platform/ZhonTai.Admin/Services/Tenant/TenantService.cs

@@ -315,7 +315,8 @@ public class TenantService : BaseService, ITenantService, IDynamicApi
                 Password = user.Password,
                 Role = "2",
                 ParentId = "0_",
-                InviteCode = invite
+                InviteCode = invite,
+                CommissionRatio= _appConfig.TenantRatio
             };
             await _platformUserRepository.InsertAsync(platfromUser);
             long platfromUserId = platfromUser.Id;

+ 67 - 3
src/platform/ZhonTai.Admin/ZhonTai.Admin.xml

@@ -430,6 +430,11 @@
             腾讯云短信相关配置
             </summary>
         </member>
+        <member name="P:ZhonTai.Admin.Core.Configs.AppConfig.TenantRatio">
+            <summary>
+            平台默认抽成比率
+            </summary>
+        </member>
         <member name="P:ZhonTai.Admin.Core.Configs.InviteUrl.Prefix">
             <summary>
             前缀
@@ -1158,6 +1163,16 @@
             短信单发
             </summary>
         </member>
+        <member name="T:ZhonTai.Admin.Core.Consts.TaskNames">
+            <summary>
+            任务常量
+            </summary>
+        </member>
+        <member name="F:ZhonTai.Admin.Core.Consts.TaskNames.CompanyDrawTask">
+            <summary>
+            公司抽成生效时间任务
+            </summary>
+        </member>
         <member name="T:ZhonTai.Admin.Core.Conventions.ApiGroupConvention">
             <summary>
             Api分组约定
@@ -1953,6 +1968,22 @@
             输入模型验证过滤器
             </summary>
         </member>
+        <member name="T:ZhonTai.Admin.Core.Handlers.AppCustomTaskHandler">
+            <summary>
+            模块自定义任务处理器
+            </summary>
+        </member>
+        <member name="T:ZhonTai.Admin.Core.Handlers.TaskHandler">
+            <summary>
+            模块任务处理器
+            </summary>
+        </member>
+        <member name="M:ZhonTai.Admin.Core.Handlers.TaskHandler.ModuleTask(FreeScheduler.TaskInfo)">
+            <summary>
+            公司抽成任务
+            </summary>
+            <param name="task"></param>
+        </member>
         <member name="T:ZhonTai.Admin.Core.Helpers.NOPIHelper">
             <summary>
             Excel帮助类
@@ -2803,6 +2834,11 @@
             标签
             </summary>
         </member>
+        <member name="P:ZhonTai.Admin.Domain.Notice.NoticeEntity.IsShow">
+            <summary>
+            是否展示 1展示 0不展示
+            </summary>
+        </member>
         <member name="T:ZhonTai.Admin.Domain.OprationLog.OprationLogEntity">
             <summary>
             操作日志
@@ -3520,6 +3556,16 @@
             平台比率
             </summary>
         </member>
+        <member name="P:ZhonTai.Admin.Domain.Project.ProjectStatEntity.UserCommission">
+            <summary>
+            用户佣金
+            </summary>
+        </member>
+        <member name="P:ZhonTai.Admin.Domain.Project.ProjectStatEntity.UserRole">
+            <summary>
+            用户角色
+            </summary>
+        </member>
         <member name="T:ZhonTai.Admin.Domain.RoleOrgEntity">
             <summary>
             角色部门
@@ -7441,6 +7487,11 @@
             纯文本内容
             </summary>        
         </member>
+        <member name="P:ZhonTai.Admin.Services.Notice.Dto.NoticeAddInput.IsShow">
+            <summary>
+            是否展示 1展示 0不展示
+            </summary>
+        </member>
         <member name="P:ZhonTai.Admin.Services.Notice.Dto.NoticeListOutput.Title">
             <summary>
             公告标题
@@ -8842,13 +8893,14 @@
             <param name="EffecDate">状态 2上架 3下架 4暂停</param>
              <returns></returns>    
         </member>
-        <member name="M:ZhonTai.Admin.Services.ProjectStat.ProjectStatService.GetCommission(System.Decimal,System.Decimal,System.Int32)">
+        <member name="M:ZhonTai.Admin.Services.ProjectStat.ProjectStatService.GetCommission(System.Decimal,System.Decimal,System.Int32,System.Decimal)">
             <summary>
             获取佣金
             </summary>
             <param name="price">项目价格</param>
-            <param name="ratio">公司抽成比率,抽成方式是2,则抽成金额</param>
-            <param name="drawType">抽成方式1比率 2佣金</param>
+            <param name="compnayRatio">公司抽成比率,抽成方式是2,则抽成金额</param>
+            <param name="companyDrawWay">抽成方式1比率 2佣金</param>
+            <param name="tenantRatio">平台抽成比率</param>
         </member>
         <member name="P:ZhonTai.Admin.Services.Project.Dto.CompanyDrawInput.DrawRatio">
             <summary>
@@ -8920,6 +8972,11 @@
             抽成价格
             </summary>
         </member>
+        <member name="P:ZhonTai.Admin.Services.Project.Dto.PriceGetPageOutput_Price.IsExistNextInfo">
+            <summary>
+            是否存在抽成信息 1存在 0不存在
+            </summary>
+        </member>
         <member name="P:ZhonTai.Admin.Services.Project.Dto.ProjectAddInput.Id">
             <summary>
             项目Id
@@ -9100,6 +9157,13 @@
             <param name="input"></param>
             <returns></returns>
         </member>
+        <member name="M:ZhonTai.Admin.Services.Project.ProjectPriceService.GetDrawInfoAsync(ZhonTai.Admin.Services.Project.Dto.DrawInfoInput)">
+            <summary>
+            下次生效信息
+            </summary>
+            <param name="input"></param>
+            <returns></returns>
+        </member>
         <member name="M:ZhonTai.Admin.Services.Project.ProjectPriceService.ExecuteTaskCompanyDraw">
             <summary>
             执行公司抽成任务