cdk
昨天 a3beb6aae5d38391a5de3450ff20dd2a9b7e2bdb
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
using Microsoft.AspNetCore.Mvc;
using NewPdaSqlServer.Dto.service;
using NewPdaSqlServer.service.JJGZ;
using NewPdaSqlServer.service.Warehouse;
using NewPdaSqlServer.util;
 
namespace NewPdaSqlServer.Controllers.JJGZ
{
    [Route("api/[controller]")]
    [ApiController]
    public class OaToMesRecordController : ControllerBase
    {
        OaToMesRecordManager m = new OaToMesRecordManager();
 
        [HttpPost("ApproveRecord")]
        public ResponseResult ApproveRecord(OaToMesRecord queryObj)
        {
            try
            {
                string rtnMsg = m.ApproveRecord(queryObj);
                return new ResponseResult
                {
                    status = 0,
                    message = rtnMsg,
                    data = null
                };
            }
            catch (Exception ex)
            {
                return ResponseResult.ResponseError(ex);
            }
        }
 
        [HttpPost("ApproveUser")]
        public ResponseResult ApproveUser(OaToMesUser queryObj)
        {
            try
            {
                string rtnMsg = m.ApproveUser(queryObj);
                return new ResponseResult
                {
                    status = 0,
                    message = rtnMsg,
                    data = null
                };
            }
            catch (Exception ex)
            {
                return ResponseResult.ResponseError(ex);
            }
        }
 
        [HttpPost("ApproveDepartment")]
        public ResponseResult ApproveDepartment(OaToMesDepartment queryObj)
        {
            try
            {
                string rtnMsg = m.ApproveDepartment(queryObj);
                return new ResponseResult
                {
                    status = 0,
                    message = rtnMsg,
                    data = null
                };
            }
            catch (Exception ex)
            {
                return ResponseResult.ResponseError(ex);
            }
        }
    }
}