using Castle.Components.DictionaryAdapter.Xml; namespace WIDESEA_StorageBasicService; public class BoxingInfoDetailService : ServiceBase, IBoxingInfoDetailService { private readonly IBoxingInfoRepository boxingInfoRepository; public BoxingInfoDetailService(IBoxingInfoDetailRepository BaseDal, IBoxingInfoRepository boxingInfoRepository) : base(BaseDal) { this.boxingInfoRepository = boxingInfoRepository; } /// /// 查询组盘信息 /// /// /// public object GetBarcodeDetial(string palletCode) { List 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() }; } catch (Exception) { return new { status = 0, data = new List() }; }; } }