刘磊
5 天以前 5eeed44ad21748ed7560a8c688d4e2d2f03555c8
项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Boxing/BoxingInfoDetailService.cs
@@ -9,43 +9,4 @@
    {
        this.boxingInfoRepository = boxingInfoRepository;
    }
    /// <summary>
    /// 鏌ヨ缁勭洏淇℃伅
    /// </summary>
    /// <param name="palletCode"></param>
    /// <returns></returns>
    public object GetBarcodeDetial(string palletCode)
    {
        List<DtBoxingInfoDetail> list = null;
        try
        {
            var headId = boxingInfoRepository.QueryFirst(x => x.PalletCode == palletCode);
            if (headId != null)
            {
                list = BaseDal.QueryData(x => x.BoxingInfoId == headId.Id);
                return new
                {
                    status = 1,
                    count = list.Count(),
                    data = list
                };
            }
            return new
            {
                status = 0,
                data = new List<DtBoxingInfoDetail>()
            };
        }
        catch (Exception)
        {
            return new
            {
                status = 0,
                data = new List<DtBoxingInfoDetail>()
            };
        };
    }
}