ソースを参照

日付报表 -> 类型基础数据新增(各部门基础固定费用明细、团组费用、物资采购) 类型

Lyyyi 1 日 前
コミット
42cea4a1ba
共有2 個のファイルを変更した17 個の追加8 個の削除を含む
  1. 8 5
      OASystem/OASystem.Api/Controllers/StatisticsController.cs
  2. 9 3
      OASystem/OASystem.Api/OAMethodLib/QiYeWeChatAPI/AppNotice/Config.cs

+ 8 - 5
OASystem/OASystem.Api/Controllers/StatisticsController.cs

@@ -5739,11 +5739,14 @@ Group By CnName");
             {
                 var defaultParentIds = new List<int>()
                 {
-                    48,//  人员费用
-                    49,//  办公费用
-                    50,//  销售费用
-                    51,//  其他费用
-                    55,//  大运会
+                    48,  // 人员费用
+                    49,  // 办公费用
+                    50,  // 销售费用
+                    51,  // 其他费用
+                    55,  // 大运会
+                    90,  // 各部门基础固定费用明细
+                    104, // 团组费用
+                    116, // 物资采购
                 };
 
                 var dailypaymentTypeData = await RedisRepository.RedisFactory

+ 9 - 3
OASystem/OASystem.Api/OAMethodLib/QiYeWeChatAPI/AppNotice/Config.cs

@@ -596,10 +596,16 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
         /// <returns></returns>
         public static string TaskAssignment_Create_ToUser(TaskAssignment_Create_ToUserModel dto)
         {
-            string result = string.Format(@" `任务分配通知` 
 
->团组:<font color='info'>{0}</font>  
+            //团组名称=“未选择”时 不显示 团名称行
+            string groupLabel = string.Empty;
+            if (dto != null && dto.GroupName != "未选择") {
+                groupLabel = @$">团组:<font color='info'>{dto.GroupName}</font>
+";
+            }
 
+            string result = string.Format(@" `任务分配通知` 
+{0}
 <font color='info'>{1}</font>
 
 >操作人员:{2}
@@ -607,7 +613,7 @@ namespace OASystem.API.OAMethodLib.QiYeWeChatAPI.AppNotice
 
 [详细信息请前往OA系统查看](http://oa.pan-american-intl.com:4399/) 
 
- ", dto.GroupName, dto.Title, dto.CreateUser, dto.RefreshDate);
+ ", groupLabel, dto.Title, dto.CreateUser, dto.RefreshDate);
 
             return result;
         }