Преглед изворни кода

修复无分红显示错误

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());
             }