wangxinhui
14 小时以前 39d468b76e60c05ffcdf749f7ed1d3c443d542f8
ÏîÄ¿´úÂë/WCS/WCSServices/WIDESEAWCS_PackInfoService/StationPackInfoService.cs
@@ -7,7 +7,6 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
<<<<<<< HEAD
using WIDESEAWCS_Core.BaseRepository;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseServices;
@@ -16,7 +15,6 @@
using WIDESEAWCS_Model.Models;
using WIDESEAWCS_Core.Helper;
using WIDESEAWCS_IPackInfoService;
=======
using WIDESEAWCS_Common.Utilities;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseRepository;
@@ -27,16 +25,14 @@
using WIDESEAWCS_ITaskInfoRepository;
using WIDESEAWCS_Model.Models;
using WIDESEAWCS_PackInfoRepository;
>>>>>>> main
namespace WIDESEAWCS_PackInfoService
{
    public class StationPackInfoService : ServiceBase<Dt_StationPackInfo, IStationPackInfoRepository>, IStationPackInfoService
    {
<<<<<<< HEAD
        public StationPackInfoService(IStationPackInfoRepository BaseDal) : base(BaseDal)
        {
=======
        }
        private readonly IStationPackDetailRepository _stationPackDetailRepository;
        private readonly IPackinfoRepository _packInfoRepository;
        private readonly IPackaxisTaskRepository _packaxisTaskRepository;
@@ -67,11 +63,12 @@
                    packInfo.AssignNum = 0;
                    packInfo.ExecutingNum = 0;
                    packInfo.OverNum = 0;
                    packInfo.HeightNum = 0;
                    content.Status = BaseDal.UpdateData(packInfo);
                    //同时删除码垛待执行明细表
                    //删除码垛工位执行明细,修改待码垛信息箱码状态为0
                    List<Dt_StationPackDetail> stationPackDetails = _stationPackDetailRepository.QueryData(x => x.StationPackId == packInfo.id);
                    List<Dt_StationPackDetail> stationPackDetails = _stationPackDetailRepository.QueryData(x => x.StationPackId == packInfo.Id);
                    List<string> barCodes = stationPackDetails.Select(x => x.BoxCode).ToList();
                    List<Dt_Packinfo> packinfos = _packInfoRepository.QueryData(x => barCodes.Contains(x.BarCode)).ToList();
                    packinfos.ForEach(x => x.PackStatus = 0);//改变状态
@@ -89,7 +86,6 @@
                WebResponseContent.Instance.Error(e.Message);
            }
            return content;
>>>>>>> main
        }
    }
}