yl
2023-02-09 4f18572bce174f7d131e11d3f69156183ff7c71d
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
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/AppPersonal")]
    [ControllerGroup("App个人中心", "在线接口")]
    [ChannelActionFilterAttributeApp]
    public class AppPersonalController : ApiController
    {
        //定义全局信息返回变量
        ToMessage mes = new ToMessage();
        RedisHelper redis = new RedisHelper();
 
        #region[App个人计件工资]
        /// <summary>
        /// App个人计件工资
        /// </summary>
        /// <param name="usercode">登录人员</param>
        /// <param name="Ratetime">时间</param>
        /// <returns></returns>
        [Route(template: "PieceRateWage")]
        [HttpGet]
        public HttpResponseMessage PieceRateWage(string usercode,string Ratetime)
        {
            string startopendate = "";  //开始时间
            string endclosedate = "";    //结束时间
            if (Ratetime != "" && Ratetime != null)
            {
                startopendate = Ratetime.Split('~')[0].ToString();
                endclosedate = Ratetime.Split('~')[1].ToString();
            }
            mes = AppPersonalBLL.PieceRateWage(usercode,startopendate, endclosedate);
            return TJson.toJson(mes);
        }
        #endregion
    }
}