| | |
| | | using AutoMapper; |
| | | using MapsterMapper; |
| | | using WIDESEA_Core.BaseRepository; |
| | | using WIDESEA_Core.BaseServices; |
| | | using WIDESEA_IOutboundService; |
| | |
| | | |
| | | namespace WIDESEA_OutboundService |
| | | { |
| | | /// <summary> |
| | | /// 出库单服务实现类 |
| | | /// </summary> |
| | | public class OutboundOrderService : ServiceBase<Dt_OutboundOrder, IRepository<Dt_OutboundOrder>>, IOutboundOrderService |
| | | { |
| | | private readonly IMapper _mapper; |
| | | private readonly IUnitOfWorkManage _unitOfWorkManage; |
| | | |
| | | /// <summary> |
| | | /// 获取出库单仓储接口 |
| | | /// </summary> |
| | | public IRepository<Dt_OutboundOrder> Repository => BaseDal; |
| | | |
| | | public OutboundOrderService(IRepository<Dt_OutboundOrder> BaseDal, IMapper mapper, IUnitOfWorkManage unitOfWorkManage) : base(BaseDal) |
| | | /// <summary> |
| | | /// 构造函数 |
| | | /// </summary> |
| | | /// <param name="baseDal">基础数据访问对象</param> |
| | | /// <param name="mapper">对象映射器</param> |
| | | /// <param name="unitOfWorkManage">工作单元管理器</param> |
| | | public OutboundOrderService( |
| | | IRepository<Dt_OutboundOrder> baseDal, |
| | | IMapper mapper, |
| | | IUnitOfWorkManage unitOfWorkManage) : base(baseDal) |
| | | { |
| | | _mapper = mapper; |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | | } |
| | | |
| | | } |
| | | } |