using HH.WMS.Entitys;
|
using HH.WMS.Entitys.ERP;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace HH.WMS.BLL.ERP
|
{
|
public class TN_ER_COMBINE_CAGE_HISTORYBLL : DapperBaseBLL
|
{
|
#region GET
|
|
public List<TN_ER_COMBINE_CAGE_HISTORYEntity> GetList(string trayCode, string state)
|
{
|
return BLLCreator.Create<DapperBLL<TN_ER_COMBINE_CAGE_HISTORYEntity>>().GetList(new
|
{
|
CN_N_SYNC = state,
|
CN_S_TRAY_CODE = trayCode
|
});
|
}
|
|
#endregion
|
|
#region UPDATE
|
|
public OperateResult UpdateState(List<TN_ER_COMBINE_CAGE_HISTORYEntity> combineCages)
|
{
|
var result = OperateResult.Succeed();
|
foreach (var combineCage in combineCages)
|
{
|
result = BLLCreator.Create<DapperBLL<TN_ER_COMBINE_CAGE_HISTORYEntity>>().Update(new { CN_N_SYNC = "出库" }, new { CN_GUID = combineCage.CN_GUID });
|
if (!result.Success)
|
return result;
|
}
|
return result;
|
}
|
|
#endregion
|
}
|
}
|