fix: 去除非国联客户审批配置case

This commit is contained in:
tengyufan
2026-08-11 14:35:34 +08:00
parent 870cd337f6
commit fcf94ce982
3 changed files with 6 additions and 6 deletions
@@ -98,7 +98,7 @@ namespace YLErp.Modules.ClientModule
//针对法人,授权协议签署人才做唯一性判断,有效期结束后可新增
if ((contactType == contactypelist.FirstOrDefault(x => x.ContactType == "法人")?.id || (contactType == contactypelist.FirstOrDefault(x => x.ContactType == "授权协议签署人")?.id && PS.Config.Company == Configuration.CompanyEnum.))
&& DbContext.clientduty.Any(x => x.ApprovalOrder < 1 && x.ClientId == req.ClientId && x.ContactTypeId.Contains(contactType.ToString()) && (x.DeadLine >= DateTime.Now || !x.DeadLine.HasValue))
&& !PS.Config.Is浙期 && PS.Config.Company != Configuration.CompanyEnum.)
&& PS.Config.Company != Configuration.CompanyEnum.)
{
throw new ServiceException("法人在有效期内必须唯一,授权协议签署人必须唯一");
}
@@ -113,7 +113,7 @@ namespace YLErp.Modules.ClientModule
//针对法人,授权协议签署人才做唯一性判断,有效期结束后可新增
if ((contactType == contactypelist.FirstOrDefault(x => x.ContactType == "法人")?.id || contactType == contactypelist.FirstOrDefault(x => x.ContactType == "授权协议签署人")?.id)
&& DbContext.clientduty.Any(x => x.ApprovalOrder < 1 && x.ClientId == req.ClientId && x.ContactTypeId.Contains(contactType.ToString()) && x.id != req.id && (x.DeadLine >= DateTime.Now || !x.DeadLine.HasValue))
&& !PS.Config.Is浙期 && PS.Config.Company != Configuration.CompanyEnum.)
&& PS.Config.Company != Configuration.CompanyEnum.)
{
throw new ServiceException("法人在有效期内必须唯一,授权协议签署人必须唯一");
}
@@ -209,7 +209,7 @@ namespace YLErp.Modules.ClientModule
if (dbmodel.ApprovalOrder == 0)
{
if (clientCount > 0 && client.ProcessStatus == "已开户"
&& (PS.Config.Is浙期 || PS.Config.Company == Configuration.CompanyEnum.))
&& PS.Config.Company == Configuration.CompanyEnum.)
{
if (!isAdd)
{
@@ -399,7 +399,7 @@ namespace YLErp.Modules.ClientModule
var clientCount = yldb.approvalprocess.Where(x => x.processType == "ClientProcess").Count();
if (clientCount > 0 && client.ProcessStatus == "已开户"
&& (PS.Config.Is浙期 || PS.Config.Company == Configuration.CompanyEnum.)
&& PS.Config.Company == Configuration.CompanyEnum.
&& clientDuty.ApprovalOrder == 0)
{
clientDuty.ApprovalOrder = (int)ApprovalOrderEnum.;
@@ -1103,7 +1103,7 @@ namespace YLErp.Modules.ClientModule
public bool resetClientProcess(client_file file, ApprovalOrderEnum orderEnum)
{
if (string.IsNullOrWhiteSpace(file.ProtocolNumber) && file.ApprovalOrder == (int)ApprovalOrderEnum.
&& !PS.Config.Is浙期 && PS.Config.Company != Configuration.CompanyEnum.)
&& PS.Config.Company != Configuration.CompanyEnum.)
{
return false;
}
@@ -1778,7 +1778,7 @@ namespace YLErp.Modules.ClientModule
var processlist = yldb.approvalprocess.Where(x => x.processType == "ClientProcess");
if (processlist.Count() > 0 && client.ProcessStatus == "已开户"
&& (PS.Config.Is浙期 || PS.Config.Company == Configuration.CompanyEnum.))
&& PS.Config.Company == Configuration.CompanyEnum.)
{
clientDuty.ApprovalOrder = (int)ApprovalOrderEnum.;