客户档案
This commit is contained in:
parent
3dbf8ef444
commit
5d44809e86
38
DOAN.Admin.WebApi/Controllers/MES/base/BaseInteractERP.cs
Normal file
38
DOAN.Admin.WebApi/Controllers/MES/base/BaseInteractERP.cs
Normal file
@ -0,0 +1,38 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using DOAN.Model.Dto;
|
||||
using DOAN.Model.MES.base_.Dto;
|
||||
using DOAN.Model.MES.base_;
|
||||
using DOAN.Service.MES.base_.IService;
|
||||
using DOAN.Admin.WebApi.Filters;
|
||||
|
||||
namespace DOAN.Admin.WebApi.Controllers
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
///对接ERP
|
||||
/// </summary>
|
||||
[Verify]
|
||||
[Route("mes/baseInteractERP")]
|
||||
public class BaseInteractERPController : BaseController
|
||||
{
|
||||
private readonly IInteractERPService interactERPService;
|
||||
public BaseInteractERPController(IInteractERPService interactERPService)
|
||||
{
|
||||
this.interactERPService = interactERPService;
|
||||
}
|
||||
|
||||
|
||||
//TODO 同步ERP中的客户信息
|
||||
[HttpGet("synch_ERP_custom")]
|
||||
public IActionResult SynhERPCustom()
|
||||
{
|
||||
var response= interactERPService.SynhERPCustom();
|
||||
|
||||
return SUCCESS(response);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -18,8 +18,8 @@
|
||||
{
|
||||
//"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=GXAssembly;Port=3308",
|
||||
// "Conn": "Data Source=127.0.0.1;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306",
|
||||
"Conn": "Data Source=192.168.0.58;User ID=root;Password=123456;Initial Catalog=GXAssembly;Port=3306",
|
||||
"DbType": 0, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3,PgSql = 4
|
||||
"Conn": "Data Source=192.168.20.202;User ID=u8-mes;Password=0.1230.123;Initial Catalog=UFDATA_230_2024",
|
||||
"DbType": 1, //数据库类型 MySql = 0, SqlServer = 1, Oracle = 3,PgSql = 4
|
||||
"ConfigId": "1", //多租户唯一标识
|
||||
"IsAutoCloseConnection": true
|
||||
}
|
||||
|
||||
37
DOAN.Model/MES/ERP/CustDevMesCustomer.cs
Normal file
37
DOAN.Model/MES/ERP/CustDevMesCustomer.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DOAN.Model.MES.ERP
|
||||
{
|
||||
/// <summary>
|
||||
/// 客户档案
|
||||
/// </summary>
|
||||
[SugarTable("custDev_mes_Customer")]
|
||||
public class CustDevMesCustomer
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 客户编码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cCusCode")]
|
||||
public string CusCode { get; set; }
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 客户名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cCusName")]
|
||||
public string CusName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户简称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cCusAbbName")]
|
||||
public string CusAbbName { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
14
DOAN.Service/MES/base/IService/IInteractERPService.cs
Normal file
14
DOAN.Service/MES/base/IService/IInteractERPService.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using DOAN.Model;
|
||||
using DOAN.Model.MES.base_.Dto;
|
||||
using DOAN.Model.MES.base_;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace DOAN.Service.MES.base_.IService
|
||||
{
|
||||
public interface IInteractERPService
|
||||
{
|
||||
|
||||
int SynhERPCustom();
|
||||
}
|
||||
}
|
||||
34
DOAN.Service/MES/base/InteractERPService.cs
Normal file
34
DOAN.Service/MES/base/InteractERPService.cs
Normal file
@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using SqlSugar;
|
||||
using Infrastructure.Attribute;
|
||||
using Infrastructure.Extensions;
|
||||
using DOAN.Model;
|
||||
using DOAN.Model.MES.base_.Dto;
|
||||
using DOAN.Model.MES.base_;
|
||||
using DOAN.Repository;
|
||||
using DOAN.Service.MES.base_.IService;
|
||||
using System.Linq;
|
||||
using Mapster;
|
||||
|
||||
namespace DOAN.Service.MES.base_
|
||||
{
|
||||
/// <summary>
|
||||
/// 工位Service业务层处理
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IBaseWorkStationService), ServiceLifetime = LifeTime.Transient)]
|
||||
public class InteractERPService : BaseService<BaseWorkStation>, IInteractERPService
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 同步ERP中的客户信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public int SynhERPCustom()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user