소스 검색

修复无分红显示错误

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