jt
2021-06-10 5d0d028456874576560552f5a5c4e8b801786f11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using HH.WMS.BLL.Check;
using HH.WMS.Entitys;
using HH.WMS.WebApi.Areas.Common.Controllers;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
 
namespace HH.WMS.WebApi.Areas.AllQuery.Controllers
{
    public class ColligateQueryController : BaseController
    {
        #region 综合查询
        /// <summary>
        /// 根据货位获取托盘中物料
        /// </summary>
        /// <param name="sqlwhere">查询条件</param>
        /// <returns></returns>
        /// <history>[HanHe(lt)] CREATED 2019/1/2</history>
        [HttpGet]
        public string GetComPreInfo(string queryCode, string queryType)
        {
            return ValidateToken(t =>
            {
                DataTable dt = new DataTable();
                //货位查询
                if (queryType == "2")
                {
                    dt = BLL.BLLCreator.Create<TN_WM_CHECK_LISTBLL>().GetTrayitemBylocation(queryCode);
                }
                OperateResult result = OperateResult.Succeed("", dt);
                return JsonConvert.SerializeObject(result);
            });
        }
        #endregion
    }
}