ソースを参照

修复无分红显示错误

DuGuYang 1 年間 前
コミット
a93dc4ae20
1 ファイル変更1 行追加1 行削除
  1. 1 1
      Service/Main/ConsumerProfitService.cs

+ 1 - 1
Service/Main/ConsumerProfitService.cs

@@ -81,7 +81,7 @@ namespace MySystem.Service.Main
         {
             var dt = new DbService(AppConfig.Base.mainTables, _conn).Query("Sum(" + field + ") " + field, "ConsumerProfit", condition);
             decimal amount = 0;
-            if (dt.Count > 0)
+            if (dt.Count > 0 && !string.IsNullOrEmpty(dt[field].ToString()))
             {
                 amount = decimal.Parse(dt[field].ToString());
             }