Browse Source

修复无分红显示错误

DuGuYang 1 năm trước cách đây
mục cha
commit
a93dc4ae20
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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());
             }