|
@@ -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 = "该笔费用已存在,请勿重复添加!" };
|