Bläddra i källkod

保险费用录入修改

jiangjc 11 månader sedan
förälder
incheckning
3323b90323

+ 1 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/CustomersRepository.cs

@@ -398,7 +398,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
 
                 if (dto.Status == 1)//添加
                 {
-                    Grp_Customers customers = _sqlSugar.Queryable<Grp_Customers>().First(a => a.IsDel == 0 && a.ClientName == dto.ClientName && a.InsuranceCosts == dto.InsuranceCosts);
+                    Grp_Customers customers = _sqlSugar.Queryable<Grp_Customers>().First(a => a.DiId == dto.DiId && a.IsDel == 0 && a.ClientName == dto.ClientName && a.InsuranceCosts == dto.InsuranceCosts && a.Currency == dto.Currency);
                     if (customers != null)
                     {
                         return result = new Result() { Code = -1, Msg = "该笔费用已存在,请勿重复添加!" };