zhanghonglin
10 小时以前 1e6a3ce80c38124fe8750f59956528204e696d4e
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEAWCS_Core.BaseRepository;
using WIDESEAWCS_Core.BaseServices;
using WIDESEAWCS_Core.LogHelper;
using WIDESEAWCS_DTO.ERP;
using WIDESEAWCS_ISystemServices;
using WIDESEAWCS_Model.Models.ERP;
using WIDESEAWCS_Model.Models.TaskInfo;
 
namespace WIDESEAWCS_SystemServices
{
    public class Dt_ERPService : ServiceBase<Dt_ERP, IRepository<Dt_ERP>>, IDt_ERPService
    {
        public Dt_ERPService(IRepository<Dt_ERP> BaseDal) : base(BaseDal)
        {
        }
        public IRepository<Dt_ERP> Repository => BaseDal;
 
 
        //获取ERP的AppTicket
        public string GetappTicket(AppTicket AppTicket)
        {
            string k = "失败";
            if (AppTicket.result !=null && !AppTicket.result.Equals(""))
            {
                k = "成功";
                LogLock.OutLogAOP("ERP获取AppTicket日志", new string[] { "ERPAppTicket", $"{AppTicket.result}" });
                Dt_ERP ERP = BaseDal.QueryFirst(x=>x.Id==1);
                ERP.appTicket = AppTicket.result;
                BaseDal.UpdateData(ERP);
            }
            return k;
        }
    }
}