增加QM 错误单据查询
This commit is contained in:
@@ -87,5 +87,23 @@ select a.id AS ArrivalId,a.cCode as ArrivalCode,a.cpersoncode,a.cpersonname,A.c
|
||||
}
|
||||
|
||||
|
||||
public IEnumerable<object> QmError()
|
||||
{
|
||||
string sql = @" select isnull(a.CINVCODE,'') as qminvcode,a.CINVNAME,isnull(b.cInvCode,'') as poinvcode,a.CREJECTCODE,d.cCode,f.cCode
|
||||
from QM_QPERREJECTLIST a WITH (NOLOCK) left join PO_Podetails b WITH (NOLOCK) on a.IPUPODID=b.id
|
||||
left join PU_ArrivalVouchs c WITH (NOLOCK) on a.id=c.irejectautoid
|
||||
left join PU_ArrivalVouch d WITH (NOLOCK) on c.id=d.id
|
||||
left join RdRecords01 e WITH (NOLOCK) on c.Autoid=e.iArrsId
|
||||
left join RdRecord01 f WITH (NOLOCK) on e.id=f.id
|
||||
where isnull(a.CINVCODE,'')<>isnull(b.cInvCode,'') and b.id is not null";
|
||||
|
||||
|
||||
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
|
||||
{
|
||||
return conn.Query<object>(sql, new {});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user