jiangjc 9 months ago
parent
commit
e346a9fd5a

+ 18 - 12
OASystem/OASystem.Infrastructure/Repositories/Financial/DailyFeePaymentRepository.cs

@@ -364,19 +364,25 @@ namespace OASystem.Infrastructure.Repositories.Financial
             Fin_DailyFeePayment _DailyFeePayment = await _sqlSugar.Queryable<Fin_DailyFeePayment>().Where(it => it.Id == dto.Id && it.IsDel == 0).FirstAsync();
             if (_DailyFeePayment != null)
             {
-                if (_DailyFeePayment.FAudit != 0 && _DailyFeePayment.MAudit != 0)
+                //if (_DailyFeePayment.FAudit != 0 && _DailyFeePayment.MAudit != 0)
+                //{
+                //    result.Msg = "财务和总经理均已审核,不可修改!";
+                //    return result;
+                //}
+                //else if (_DailyFeePayment.FAudit != 0)
+                //{
+                //    result.Msg = "财务已审核,不可修改!";
+                //    return result;
+                //}
+                //else if (_DailyFeePayment.MAudit != 0)
+                //{
+                //    result.Msg = "总经理已审核,不可修改!";
+                //    return result;
+                //}
+
+                if (_DailyFeePayment.FAudit == 1 || _DailyFeePayment.MAudit == 1)
                 {
-                    result.Msg = "财务和总经理均已审核,不可修改!";
-                    return result;
-                }
-                else if (_DailyFeePayment.FAudit != 0)
-                {
-                    result.Msg = "财务已审核,不可修改!";
-                    return result;
-                }
-                else if (_DailyFeePayment.MAudit != 0)
-                {
-                    result.Msg = "总经理已审核,不可修改!";
+                    result.Msg = "审核已通过,不可修改!";
                     return result;
                 }