| | |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"娣诲姞浠诲姟寮傚父,閿欒淇℃伅:{"鏈壘鍒板師鏉愭枡搴撳彲鐢ㄧ紦瀛樹綅"}"); |
| | | } |
| | | Dt_CachePoint point = _basicService.CachePointService.Repository.QueryFirst(x => x.PointCode == stationcode );//&& x.Materialtype == PalletCode |
| | | if (point == null) |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"娣诲姞浠诲姟寮傚父,閿欒淇℃伅:{"鎵爜鏁版嵁寮傚父锛屾湭鎵惧埌姝ょ紦瀛樻灦鎴栫墿鏂欑被鍨嬩笉鍖归厤"}"); |
| | | } |
| | | Dt_CachePoint points = _basicService.CachePointService.Repository.QueryFirst(x => x.PointCode == stationcode && x.PointStatus == LocationStatusEnum.Free.ObjToInt()); |
| | | if (points == null) |
| | | { |
| | |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"娣诲姞浠诲姟寮傚父,閿欒淇℃伅:璇ョ珯鐐瑰凡瀛樺湪浠诲姟"); |
| | | } |
| | | var pointname = _basicService.CachePointService.Repository.QueryData(x => x.PointName == point.PointName).ToList(); |
| | | var pointname = _basicService.CachePointService.Repository.QueryData(x => x.Remark == points.Remark).ToList(); |
| | | foreach (var item in pointname) |
| | | { |
| | | var a = point.Remark.ObjToInt(); |
| | | var b = item.Remark.ObjToInt(); |
| | | if (b < a) |
| | | var a = points.Depth.ObjToInt(); |
| | | var b = item.Depth.ObjToInt(); |
| | | if (b <= a) |
| | | { |
| | | Dt_CachePoint c = _basicService.CachePointService.Repository.QueryFirst(x => x.PointCode == item.PointCode && x.PointStatus == 0); |
| | | if (c != null) |