yangle
2022-04-24 66692fe72e71ba61e7435d7fb258429eee44b8b5
WebAPI/Service/YqnQbService.cs
@@ -190,10 +190,10 @@
                return new ApiResult { code = -1, msg = "服务器繁忙" };
            try
            {
                var stationInBillModel = YqnDal.GetStationInBillMail(omodel.HProcID, omodel.HICMOBillNo);
                var stationInBillModel = YqnDal.GetStationInBillMail(omodel.HProcID, omodel.HProcExchBillNo);
                if (stationInBillModel == null)
                    return new ApiResult { code = -1, msg = "该工序进站单不存在" };
                var stationOutBillModel = YqnDal.GetStationOutBillMail(omodel.HProcID, omodel.HICMOBillNo);
                var stationOutBillModel = YqnDal.GetStationOutBillMail(omodel.HProcID, omodel.HProcExchBillNo);
                if (stationOutBillModel != null)
                    return new ApiResult { code = -1, msg = "该工序已存在出站单" };
                omodel.HYear = DateTime.Now.Year;