yl
2023-02-27 3a926240e68e44842557ed4d4ced6c403491435d
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
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using VueWebApi.DLL.BLL;
using VueWebApi.Tools;
 
namespace VueWebApi.Controllers
{
    [RoutePrefix(prefix: "api/BaseDate")]
    [ControllerGroup("基本资料", "在线接口")]
    [ChannelActionFilter]
    public class BaseDateController : ApiController
    {
        //定义全局信息返回变量
        ToMessage mes = new ToMessage();
        RedisHelper redis = new RedisHelper();
 
        #region[采购供方信息查询]
        /// <summary>
        /// 采购供方信息查询
        /// </summary>
        /// <returns></returns>
        [Route(template: "PurchSupplierSelect")]
        [HttpGet]
        public HttpResponseMessage PurchSupplierSelect()
        {
            mes = BaseDateBLL.PurchSupplierSelect();
            return TJson.toJson(mes);
        }
        #endregion
 
        #region[部门信息查询]
        /// <summary>
        /// 部门信息查询
        /// </summary>
        /// <returns></returns>
        [Route(template: "DepartMentSelect")]
        [HttpGet]
        public HttpResponseMessage DepartMentSelect()
        {
            mes = BaseDateBLL.DepartMentSelect();
            return TJson.toJson(mes);
        }
        #endregion
    }
}