This commit is contained in:
杰 朱
2021-06-21 10:44:05 +08:00
4 changed files with 44 additions and 38 deletions

View File

@@ -259,11 +259,22 @@ FROM MaterialAppVouch a
/// </summary>
/// <param name="Code"></param>
/// <returns></returns>
public IEnumerable<Model.Response.Store.MaterialAppVouchAndPostName> GetModelAndPost(string OrderCode)
public IEnumerable<Model.Response.Store.MaterialAppVouchAndPostName> GetModelAndPost(string OrderCode, string invCode)
{
if (!string.IsNullOrEmpty(OrderCode))
if (!string.IsNullOrEmpty(OrderCode) && !string.IsNullOrEmpty(invCode))
{
return this.GetListAndPost(" MA.cCode=@OrderCode AND MAS.cInvCode = @invCode ", new { OrderCode, invCode });
}
else
if (!string.IsNullOrEmpty(OrderCode))
{
return this.GetListAndPost(" MA.cCode=@OrderCode", new { OrderCode });
}
else if (!string.IsNullOrEmpty(invCode))
{
return this.GetListAndPost(" MAS.cInvCode = @invCode ", new { invCode });
}
else
{