|
@@ -644,6 +644,12 @@ namespace OASystem.Infrastructure.Repositories.PersonnelModule
|
|
|
|
|
|
var preInfos = await _sqlSugar.Queryable<Pm_GoodsAudit>().Where(x => x.IsDel == 0 && x.DataId == gsId).ToListAsync();
|
|
|
|
|
|
+
|
|
|
+ var isAuditPer = GoodsAuditType(goodsTypeId);
|
|
|
+
|
|
|
+
|
|
|
+ if (!isAuditPer) goodsAuditDep = GoodsAuditDepEnum.Hr;
|
|
|
+
|
|
|
var auditInfo = preInfos.FirstOrDefault(x => x.Dep == goodsAuditDep);
|
|
|
if (auditInfo != null)
|
|
|
{
|
|
@@ -683,9 +689,6 @@ namespace OASystem.Infrastructure.Repositories.PersonnelModule
|
|
|
|
|
|
var confirmStatus = GoodsConfirmEnum.WaitConfirm;
|
|
|
|
|
|
-
|
|
|
- var isAuditPer = GoodsAuditType(goodsTypeId);
|
|
|
-
|
|
|
if (isAuditPer)
|
|
|
{
|
|
|
if (preInfos.Where(x => x.AuditStatus == GoodsConfirmEnum.Confirmed).Count() >= 2)
|