结算方式、付费方式、表单设置 及修复日志查询错误
parent
be19f22b69
commit
8a0e94e5e6
@ -0,0 +1,63 @@
|
||||
using DS.Module.Core;
|
||||
using DS.WMS.Core.Code.Dtos;
|
||||
using DS.WMS.Core.Code.Interface;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace DS.WMS.AdminApi.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// 付费方式服务
|
||||
/// </summary>
|
||||
public class CodeFrtController : ApiController
|
||||
{
|
||||
private readonly ICodeFrtService _invokeService;
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
/// <param name="invokeService"></param>
|
||||
public CodeFrtController(ICodeFrtService invokeService)
|
||||
{
|
||||
_invokeService = invokeService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("GetCodeFrtList")]
|
||||
public DataResult<List<CodeFrtRes>> GetCodeFrtList([FromBody] PageRequest request)
|
||||
{
|
||||
var res = _invokeService.GetListByPage(request);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("EditCodeFrt")]
|
||||
public DataResult EditCodeFrt([FromBody] CodeFrtReq model)
|
||||
{
|
||||
var res = _invokeService.EditCodeFrt(model);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("GetCodeFrtInfo")]
|
||||
public DataResult<CodeFrtRes> GetCodeFrtInfo([FromQuery] string id)
|
||||
{
|
||||
var res = _invokeService.GetCodeFrtInfo(id);
|
||||
return res;
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
using DS.Module.Core;
|
||||
using DS.WMS.Core.Code.Dtos;
|
||||
using DS.WMS.Core.Code.Interface;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace DS.WMS.AdminApi.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// 结算方式服务
|
||||
/// </summary>
|
||||
public class CodeStlModeController : ApiController
|
||||
{
|
||||
private readonly ICodeStlModeService _invokeService;
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
/// <param name="invokeService"></param>
|
||||
public CodeStlModeController(ICodeStlModeService invokeService)
|
||||
{
|
||||
_invokeService = invokeService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("GetCodeStlModeList")]
|
||||
public DataResult<List<CodeStlModeRes>> GetCodeStlModeList([FromBody] PageRequest request)
|
||||
{
|
||||
var res = _invokeService.GetListByPage(request);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("EditCodeStlMode")]
|
||||
public DataResult EditCodeStlMode([FromBody] CodeStlModeReq model)
|
||||
{
|
||||
var res = _invokeService.EditCodeStlMode(model);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("GetCodeStlModeInfo")]
|
||||
public DataResult<CodeStlModeRes> GetCodeStlModeInfo([FromQuery] string id)
|
||||
{
|
||||
var res = _invokeService.GetCodeStlModeInfo(id);
|
||||
return res;
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
using DS.Module.Core;
|
||||
using FluentValidation;
|
||||
|
||||
namespace DS.WMS.Core.Code.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 付费方式请求实体
|
||||
/// </summary>
|
||||
public class CodeFrtReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 付费方式-英文名称
|
||||
/// </summary>
|
||||
public string FrtName { get; set; }= "";
|
||||
/// <summary>
|
||||
/// 中文名称
|
||||
/// </summary>
|
||||
public string CnName { get; set; }= "";
|
||||
|
||||
/// <summary>
|
||||
/// EDI代码
|
||||
/// </summary>
|
||||
public string EdiCode { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证
|
||||
/// </summary>
|
||||
public class CodeFrtReqValidator : AbstractValidator<CodeFrtReq>
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public CodeFrtReqValidator()
|
||||
{
|
||||
this.RuleFor(o => o.FrtName)
|
||||
.NotEmpty().WithName("付费方式-英文名称");
|
||||
}
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
using DS.Module.Core;
|
||||
|
||||
namespace DS.WMS.Core.Code.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 结算方式信息返回
|
||||
/// </summary>
|
||||
public class CodeVesselRes
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
/// <summary>
|
||||
/// 付费方式-英文名称
|
||||
/// </summary>
|
||||
public string FrtName { get; set; }
|
||||
/// <summary>
|
||||
/// 中文名称
|
||||
/// </summary>
|
||||
public string CnName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// EDI代码
|
||||
/// </summary>
|
||||
public string EdiCode { get; set; }
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
using DS.Module.Core;
|
||||
using FluentValidation;
|
||||
|
||||
namespace DS.WMS.Core.Code.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 结算方式请求实体
|
||||
/// </summary>
|
||||
public class CodeStlModeReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
/// <summary>
|
||||
/// 结算方式唯一代码
|
||||
/// </summary>
|
||||
public string StlCode { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 结算方式名称
|
||||
/// </summary>
|
||||
public string StlName { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// 英文名称
|
||||
/// </summary>
|
||||
public string EnName { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 财务软件代码
|
||||
/// </summary>
|
||||
public string FinanceSoftCode { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 验证
|
||||
/// </summary>
|
||||
public class CodeStlModeReqValidator : AbstractValidator<CodeStlModeReq>
|
||||
{
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
public CodeStlModeReqValidator()
|
||||
{
|
||||
this.RuleFor(o => o.StlCode)
|
||||
.NotEmpty().WithName("结算方式唯一代码");
|
||||
this.RuleFor(o => o.StlName)
|
||||
.NotEmpty().WithName("结算方式名称");
|
||||
}
|
||||
}
|
@ -0,0 +1,42 @@
|
||||
using DS.Module.Core;
|
||||
|
||||
namespace DS.WMS.Core.Code.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 结算方式返回
|
||||
/// </summary>
|
||||
public class CodeStlModeRes
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键Id
|
||||
/// </summary>
|
||||
public long Id { get; set; }
|
||||
/// <summary>
|
||||
/// 结算方式唯一代码
|
||||
/// </summary>
|
||||
public string StlCode { get; set; }
|
||||
/// <summary>
|
||||
/// 结算方式名称
|
||||
/// </summary>
|
||||
public string StlName { get; set; }
|
||||
/// <summary>
|
||||
/// 英文名称
|
||||
/// </summary>
|
||||
public string EnName { get; set; }
|
||||
/// <summary>
|
||||
/// 财务软件代码
|
||||
/// </summary>
|
||||
public string FinanceSoftCode { get; set; }
|
||||
/// <summary>
|
||||
/// 状态 0 启用 1 禁用
|
||||
/// </summary>
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Note { get; set; } = "";
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Data;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Code.Entity;
|
||||
/// <summary>
|
||||
/// 付费方式表
|
||||
/// </summary>
|
||||
[SqlSugar.SugarTable("op_code_frt","付费方式表")]
|
||||
public class CodeFrt: BaseModel<long>
|
||||
{
|
||||
/// <summary>
|
||||
/// 付费方式-英文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "付费方式-英文名称", Length = 100)]
|
||||
public string FrtName { get; set; }
|
||||
/// <summary>
|
||||
/// 中文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "中文名称", Length = 50)]
|
||||
public string CnName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// EDI代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "EDI代码", Length = 5)]
|
||||
public string EdiCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0启用 1禁用
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "状态",DefaultValue = "0")]
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Data;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Code.Entity;
|
||||
/// <summary>
|
||||
/// 结算方式表
|
||||
/// </summary>
|
||||
// ReSharper disable once StringLiteralTypo
|
||||
[SqlSugar.SugarTable("op_code_stlmode","结算方式表")]
|
||||
public class CodeStlMode: BaseModel<long>
|
||||
{
|
||||
/// <summary>
|
||||
/// 结算方式唯一代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "结算方式唯一代码", Length = 10)]
|
||||
public string StlCode { get; set; }
|
||||
/// <summary>
|
||||
/// 结算方式名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "结算方式名称", Length = 30)]
|
||||
public string StlName { get; set; }
|
||||
/// <summary>
|
||||
/// 英文名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "英文名称", Length = 100)]
|
||||
public string EnName { get; set; }
|
||||
/// <summary>
|
||||
/// 财务软件代码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "财务软件代码", Length = 30)]
|
||||
public string FinanceSoftCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 状态 0启用 1禁用
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "状态",DefaultValue = "0")]
|
||||
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Data;
|
||||
using DS.WMS.Core.Code.Dtos;
|
||||
|
||||
namespace DS.WMS.Core.Code.Interface;
|
||||
|
||||
public interface ICodeFrtService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<CodeFrtRes>> GetListByPage(PageRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditCodeFrt(CodeFrtReq req);
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<CodeFrtRes> GetCodeFrtInfo(string id);
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<CodeFrtRes>> GetClientListByPage(PageRequest request);
|
||||
/// <summary>
|
||||
/// 编辑-客户端
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditClientCodeFrt(CodeFrtReq req);
|
||||
/// <summary>
|
||||
/// 获取详情 -客户端
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
public DataResult<CodeFrtRes> GetClientCodeFrtInfo(string id);
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取付费方式列表-基础库
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<CodeFrtRes>> GetCodeFrtList(PageRequest request);
|
||||
/// <summary>
|
||||
/// 导入付费方式列表
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
DataResult ImportCodeFrt(IdModel req);
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前租户已有的付费方式
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DataResult<List<string>> GetExistCodeFrtList();
|
||||
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Data;
|
||||
using DS.WMS.Core.Code.Dtos;
|
||||
|
||||
namespace DS.WMS.Core.Code.Interface;
|
||||
|
||||
public interface ICodeStlModeService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<CodeStlModeRes>> GetListByPage(PageRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditCodeStlMode(CodeStlModeReq req);
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<CodeStlModeRes> GetCodeStlModeInfo(string id);
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<CodeStlModeRes>> GetClientListByPage(PageRequest request);
|
||||
/// <summary>
|
||||
/// 编辑-客户端
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditClientCodeStlMode(CodeStlModeReq req);
|
||||
/// <summary>
|
||||
/// 获取详情 -客户端
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
public DataResult<CodeStlModeRes> GetClientCodeStlModeInfo(string id);
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取结算方式列表-基础库
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<CodeStlModeRes>> GetCodeStlModeList(PageRequest request);
|
||||
/// <summary>
|
||||
/// 导入结算方式列表
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
DataResult ImportCodeStlMode(IdModel req);
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前租户已有的结算方式
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DataResult<List<string>> GetExistCodeStlModeList();
|
||||
|
||||
}
|
@ -0,0 +1,169 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Data;
|
||||
using DS.Module.Core.Extensions;
|
||||
using DS.Module.SqlSugar;
|
||||
using DS.Module.UserModule;
|
||||
using DS.WMS.Core.Code.Dtos;
|
||||
using DS.WMS.Core.Code.Entity;
|
||||
using DS.WMS.Core.Code.Interface;
|
||||
using Mapster;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Code.Method;
|
||||
|
||||
public class CodeFrtService:ICodeFrtService
|
||||
{
|
||||
private readonly IServiceProvider _serviceProvider;
|
||||
private readonly ISqlSugarClient db;
|
||||
private readonly IUser user;
|
||||
private readonly ISaasDbService saasService;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="serviceProvider"></param>
|
||||
public CodeFrtService(IServiceProvider serviceProvider)
|
||||
{
|
||||
_serviceProvider = serviceProvider;
|
||||
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
|
||||
user = _serviceProvider.GetRequiredService<IUser>();
|
||||
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
|
||||
}
|
||||
|
||||
public DataResult<List<CodeFrtRes>> GetListByPage(PageRequest request)
|
||||
{
|
||||
//序列化查询条件
|
||||
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
|
||||
var data = db.Queryable<CodeFrt>()
|
||||
.Where(whereList)
|
||||
.Select<CodeFrtRes>().ToQueryPage(request.PageCondition);
|
||||
return data;
|
||||
}
|
||||
|
||||
public DataResult EditCodeFrt(CodeFrtReq req)
|
||||
{
|
||||
if (req.Id == 0)
|
||||
{
|
||||
|
||||
if (db.Queryable<CodeFrt>().Where(x=>x.FrtName == req.FrtName.Trim()).Any())
|
||||
{
|
||||
return DataResult.Failed("付费方式已存在!",MultiLanguageConst.CodeFrtExist);
|
||||
}
|
||||
|
||||
var data = req.Adapt<CodeFrt>();
|
||||
|
||||
var entity = db.Insertable(data).ExecuteReturnEntity();
|
||||
|
||||
return DataResult.Successed("添加成功!", entity.Id,MultiLanguageConst.DataCreateSuccess);
|
||||
}
|
||||
else
|
||||
{
|
||||
var info = db.Queryable<CodeFrt>().Where(x => x.Id == req.Id).First();
|
||||
|
||||
info = req.Adapt(info);
|
||||
|
||||
db.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
|
||||
return DataResult.Successed("更新成功!",MultiLanguageConst.DataUpdateSuccess);
|
||||
}
|
||||
}
|
||||
|
||||
public DataResult<CodeFrtRes> GetCodeFrtInfo(string id)
|
||||
{
|
||||
var data = db.Queryable<CodeFrt>()
|
||||
.Where(a => a.Id == long.Parse(id))
|
||||
.Select<CodeFrtRes>()
|
||||
.First();
|
||||
return DataResult<CodeFrtRes>.Success(data,MultiLanguageConst.DataQuerySuccess);
|
||||
}
|
||||
|
||||
public DataResult<List<CodeFrtRes>> GetClientListByPage(PageRequest request)
|
||||
{
|
||||
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
||||
//序列化查询条件
|
||||
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
|
||||
var data = tenantDb.Queryable<CodeFrt>()
|
||||
.Where(whereList)
|
||||
.Select<CodeFrtRes>().ToQueryPage(request.PageCondition);
|
||||
return data;
|
||||
}
|
||||
|
||||
public DataResult EditClientCodeFrt(CodeFrtReq req)
|
||||
{
|
||||
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
||||
if (req.Id == 0)
|
||||
{
|
||||
|
||||
if (tenantDb.Queryable<CodeFrt>().Where(x=>x.FrtName == req.FrtName.Trim()).Any())
|
||||
{
|
||||
return DataResult.Failed("付费方式已存在!",MultiLanguageConst.CodeFrtExist);
|
||||
}
|
||||
|
||||
var data = req.Adapt<CodeFrt>();
|
||||
|
||||
var entity = tenantDb.Insertable(data).EnableDiffLogEvent().ExecuteReturnEntity();
|
||||
|
||||
return DataResult.Successed("添加成功!", entity.Id,MultiLanguageConst.DataCreateSuccess);
|
||||
}
|
||||
else
|
||||
{
|
||||
var info = tenantDb.Queryable<CodeFrt>().Where(x => x.Id == req.Id).First();
|
||||
|
||||
info = req.Adapt(info);
|
||||
|
||||
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand();
|
||||
return DataResult.Successed("更新成功!",MultiLanguageConst.DataUpdateSuccess);
|
||||
}
|
||||
}
|
||||
|
||||
public DataResult<CodeFrtRes> GetClientCodeFrtInfo(string id)
|
||||
{
|
||||
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
||||
var data = tenantDb.Queryable<CodeFrt>()
|
||||
.Where(a => a.Id == long.Parse(id))
|
||||
.Select<CodeFrtRes>()
|
||||
.First();
|
||||
return DataResult<CodeFrtRes>.Success(data,MultiLanguageConst.DataQuerySuccess);
|
||||
}
|
||||
|
||||
public DataResult<List<CodeFrtRes>> GetCodeFrtList(PageRequest request)
|
||||
{
|
||||
//序列化查询条件
|
||||
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
|
||||
var data = db.Queryable<CodeFrt>().Where(a=>a.Status == StatusEnum.Enable)
|
||||
.Where(whereList)
|
||||
.Select<CodeFrtRes>().ToQueryPage(request.PageCondition);
|
||||
return data;
|
||||
}
|
||||
|
||||
public DataResult ImportCodeFrt(IdModel req)
|
||||
{
|
||||
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
||||
var list = db.Queryable<CodeFrt>().Where(x =>req.Ids.Contains(x.Id) ).ToList();
|
||||
if (list.Count == 0)
|
||||
{
|
||||
return DataResult.Failed("付费方式导入无数据!",MultiLanguageConst.CodeFrtImportNoData);
|
||||
}
|
||||
|
||||
if (tenantDb.Queryable<CodeFrt>().Where(x =>req.Ids.Contains(x.Id) ).Any())
|
||||
{
|
||||
return DataResult.Failed("存在已导入的付费方式!",MultiLanguageConst.CodeFrtImportAlready);
|
||||
}
|
||||
|
||||
tenantDb.Insertable(list).ExecuteCommand();
|
||||
return DataResult.Successed("引入成功!",MultiLanguageConst.DataImportSuccess);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前租户已有的船名
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DataResult<List<string>> GetExistCodeFrtList()
|
||||
{
|
||||
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
||||
var data = tenantDb.Queryable<CodeFrt>()
|
||||
.Select(n=>n.Id.ToString())
|
||||
.ToList();
|
||||
return DataResult<List<string>>.Success(data);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,169 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Data;
|
||||
using DS.Module.Core.Extensions;
|
||||
using DS.Module.SqlSugar;
|
||||
using DS.Module.UserModule;
|
||||
using DS.WMS.Core.Code.Dtos;
|
||||
using DS.WMS.Core.Code.Entity;
|
||||
using DS.WMS.Core.Code.Interface;
|
||||
using Mapster;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.Code.Method;
|
||||
|
||||
public class CodeStlModeService:ICodeStlModeService
|
||||
{
|
||||
private readonly IServiceProvider _serviceProvider;
|
||||
private readonly ISqlSugarClient db;
|
||||
private readonly IUser user;
|
||||
private readonly ISaasDbService saasService;
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="serviceProvider"></param>
|
||||
public CodeStlModeService(IServiceProvider serviceProvider)
|
||||
{
|
||||
_serviceProvider = serviceProvider;
|
||||
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
|
||||
user = _serviceProvider.GetRequiredService<IUser>();
|
||||
saasService = _serviceProvider.GetRequiredService<ISaasDbService>();
|
||||
}
|
||||
|
||||
public DataResult<List<CodeStlModeRes>> GetListByPage(PageRequest request)
|
||||
{
|
||||
//序列化查询条件
|
||||
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
|
||||
var data = db.Queryable<CodeStlMode>()
|
||||
.Where(whereList)
|
||||
.Select<CodeStlModeRes>().ToQueryPage(request.PageCondition);
|
||||
return data;
|
||||
}
|
||||
|
||||
public DataResult EditCodeStlMode(CodeStlModeReq req)
|
||||
{
|
||||
if (req.Id == 0)
|
||||
{
|
||||
|
||||
if (db.Queryable<CodeStlMode>().Where(x=>x.StlCode == req.StlCode.Trim()).Any())
|
||||
{
|
||||
return DataResult.Failed("结算方式已存在!",MultiLanguageConst.CodeStlModeExist);
|
||||
}
|
||||
|
||||
var data = req.Adapt<CodeStlMode>();
|
||||
|
||||
var entity = db.Insertable(data).ExecuteReturnEntity();
|
||||
|
||||
return DataResult.Successed("添加成功!", entity.Id,MultiLanguageConst.DataCreateSuccess);
|
||||
}
|
||||
else
|
||||
{
|
||||
var info = db.Queryable<CodeStlMode>().Where(x => x.Id == req.Id).First();
|
||||
|
||||
info = req.Adapt(info);
|
||||
|
||||
db.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).EnableDiffLogEvent().ExecuteCommand();
|
||||
return DataResult.Successed("更新成功!",MultiLanguageConst.DataUpdateSuccess);
|
||||
}
|
||||
}
|
||||
|
||||
public DataResult<CodeStlModeRes> GetCodeStlModeInfo(string id)
|
||||
{
|
||||
var data = db.Queryable<CodeStlMode>()
|
||||
.Where(a => a.Id == long.Parse(id))
|
||||
.Select<CodeStlModeRes>()
|
||||
.First();
|
||||
return DataResult<CodeStlModeRes>.Success(data,MultiLanguageConst.DataQuerySuccess);
|
||||
}
|
||||
|
||||
public DataResult<List<CodeStlModeRes>> GetClientListByPage(PageRequest request)
|
||||
{
|
||||
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
||||
//序列化查询条件
|
||||
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
|
||||
var data = tenantDb.Queryable<CodeStlMode>()
|
||||
.Where(whereList)
|
||||
.Select<CodeStlModeRes>().ToQueryPage(request.PageCondition);
|
||||
return data;
|
||||
}
|
||||
|
||||
public DataResult EditClientCodeStlMode(CodeStlModeReq req)
|
||||
{
|
||||
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
||||
if (req.Id == 0)
|
||||
{
|
||||
|
||||
if (tenantDb.Queryable<CodeStlMode>().Where(x=>x.StlCode == req.StlCode.Trim()).Any())
|
||||
{
|
||||
return DataResult.Failed("结算方式已存在!",MultiLanguageConst.CodeStlModeExist);
|
||||
}
|
||||
|
||||
var data = req.Adapt<CodeStlMode>();
|
||||
|
||||
var entity = tenantDb.Insertable(data).EnableDiffLogEvent().ExecuteReturnEntity();
|
||||
|
||||
return DataResult.Successed("添加成功!", entity.Id,MultiLanguageConst.DataCreateSuccess);
|
||||
}
|
||||
else
|
||||
{
|
||||
var info = tenantDb.Queryable<CodeStlMode>().Where(x => x.Id == req.Id).First();
|
||||
|
||||
info = req.Adapt(info);
|
||||
|
||||
tenantDb.Updateable(info).IgnoreColumns(ignoreAllNullColumns: true).ExecuteCommand();
|
||||
return DataResult.Successed("更新成功!",MultiLanguageConst.DataUpdateSuccess);
|
||||
}
|
||||
}
|
||||
|
||||
public DataResult<CodeStlModeRes> GetClientCodeStlModeInfo(string id)
|
||||
{
|
||||
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
||||
var data = tenantDb.Queryable<CodeStlMode>()
|
||||
.Where(a => a.Id == long.Parse(id))
|
||||
.Select<CodeStlModeRes>()
|
||||
.First();
|
||||
return DataResult<CodeStlModeRes>.Success(data,MultiLanguageConst.DataQuerySuccess);
|
||||
}
|
||||
|
||||
public DataResult<List<CodeStlModeRes>> GetCodeStlModeList(PageRequest request)
|
||||
{
|
||||
//序列化查询条件
|
||||
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
|
||||
var data = db.Queryable<CodeStlMode>().Where(a=>a.Status == StatusEnum.Enable)
|
||||
.Where(whereList)
|
||||
.Select<CodeStlModeRes>().ToQueryPage(request.PageCondition);
|
||||
return data;
|
||||
}
|
||||
|
||||
public DataResult ImportCodeStlMode(IdModel req)
|
||||
{
|
||||
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
||||
var list = db.Queryable<CodeStlMode>().Where(x =>req.Ids.Contains(x.Id) ).ToList();
|
||||
if (list.Count == 0)
|
||||
{
|
||||
return DataResult.Failed("结算方式导入无数据!",MultiLanguageConst.CodeStlModeImportNoData);
|
||||
}
|
||||
|
||||
if (tenantDb.Queryable<CodeStlMode>().Where(x =>req.Ids.Contains(x.Id) ).Any())
|
||||
{
|
||||
return DataResult.Failed("存在已导入的结算方式!",MultiLanguageConst.CodeStlModeImportAlready);
|
||||
}
|
||||
|
||||
tenantDb.Insertable(list).ExecuteCommand();
|
||||
return DataResult.Successed("引入成功!",MultiLanguageConst.DataImportSuccess);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前租户已有的船名
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public DataResult<List<string>> GetExistCodeStlModeList()
|
||||
{
|
||||
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
||||
var data = tenantDb.Queryable<CodeStlMode>()
|
||||
.Select(n=>n.Id.ToString())
|
||||
.ToList();
|
||||
return DataResult<List<string>>.Success(data);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
namespace DS.WMS.Core.System.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 租户表单设置请求实体
|
||||
/// </summary>
|
||||
public class FormSetReq
|
||||
{
|
||||
/// <summary>
|
||||
/// 权限Id
|
||||
/// </summary>
|
||||
public long? PermissionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段设置
|
||||
/// </summary>
|
||||
public string Content { get; set; }
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
namespace DS.WMS.Core.System.Dtos;
|
||||
|
||||
/// <summary>
|
||||
/// 租户表单设置返回实体
|
||||
/// </summary>
|
||||
public class FormSetRes
|
||||
{
|
||||
/// <summary>
|
||||
/// 权限Id
|
||||
/// </summary>
|
||||
public long? PermissionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 字段设置
|
||||
/// </summary>
|
||||
public string Content { get; set; }
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
using DS.Module.Core;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
using DS.WMS.Core.System.Entity;
|
||||
|
||||
namespace DS.WMS.Core.System.Interface;
|
||||
|
||||
public interface IFormSetService
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<List<FormSetRes>> GetListByPage(PageRequest request);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
DataResult EditFormSet(FormSetReq model);
|
||||
|
||||
/// <summary>
|
||||
/// 获取详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
DataResult<FormSetRes> GetFormSetInfo(string id);
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Extensions;
|
||||
using DS.Module.UserModule;
|
||||
using DS.WMS.Core.System.Dtos;
|
||||
using DS.WMS.Core.System.Entity;
|
||||
using DS.WMS.Core.System.Interface;
|
||||
using Mapster;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using SqlSugar;
|
||||
|
||||
namespace DS.WMS.Core.System.Method;
|
||||
|
||||
public class FormSetService : IFormSetService
|
||||
{
|
||||
private readonly IServiceProvider _serviceProvider;
|
||||
private readonly ISqlSugarClient db;
|
||||
private readonly IUser user;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="serviceProvider"></param>
|
||||
public FormSetService(IServiceProvider serviceProvider)
|
||||
{
|
||||
_serviceProvider = serviceProvider;
|
||||
db = _serviceProvider.GetRequiredService<ISqlSugarClient>();
|
||||
user = _serviceProvider.GetRequiredService<IUser>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
public DataResult<List<FormSetRes>> GetListByPage(PageRequest request)
|
||||
{
|
||||
//序列化查询条件
|
||||
var whereList = db.ConfigQuery.Context.Utilities.JsonToConditionalModels(request.QueryCondition);
|
||||
var data = db.Queryable<SysFormSet>()
|
||||
.LeftJoin<SysPermission>((a, b) => a.PermissionId == b.Id)
|
||||
.Where(whereList)
|
||||
.Select<FormSetRes>().ToQueryPage(request.PageCondition);
|
||||
return data;
|
||||
}
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
public DataResult EditFormSet(FormSetReq req)
|
||||
{
|
||||
var info = db.Queryable<SysFormSet>()
|
||||
.Where(x => x.TenantId == long.Parse(user.TenantId) && x.PermissionId == req.PermissionId).First();
|
||||
|
||||
if (info.IsNull())
|
||||
{
|
||||
var entity = new SysFormSet
|
||||
{
|
||||
TenantId = long.Parse(user.TenantId),
|
||||
PermissionId = req.PermissionId,
|
||||
Content = req.Content
|
||||
};
|
||||
db.Insertable(entity).ExecuteCommand();
|
||||
}
|
||||
else
|
||||
{
|
||||
info.Content = req.Content;
|
||||
db.Updateable(info).ExecuteCommand();
|
||||
}
|
||||
|
||||
return DataResult.Successed("更新成功",MultiLanguageConst.DataUpdateSuccess);
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 详情
|
||||
/// </summary>
|
||||
/// <param name="permissionId"></param>
|
||||
/// <returns></returns>
|
||||
public DataResult<FormSetRes> GetFormSetInfo(string permissionId)
|
||||
{
|
||||
var data = db.Queryable<SysFormSet>()
|
||||
.LeftJoin<SysPermission>((a, b) => a.PermissionId == b.Id)
|
||||
.Where(x => x.TenantId == long.Parse(user.TenantId) && x.PermissionId == long.Parse(permissionId))
|
||||
.Select<FormSetRes>()
|
||||
.First();
|
||||
return DataResult<FormSetRes>.Success(data,MultiLanguageConst.DataQuerySuccess);
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Data;
|
||||
using DS.WMS.Core.Code.Dtos;
|
||||
using DS.WMS.Core.Code.Interface;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace DS.WMS.MainApi.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// 付费方式服务
|
||||
/// </summary>
|
||||
public class CodeFrtController : ApiController
|
||||
{
|
||||
private readonly ICodeFrtService _invokeService;
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
/// <param name="invokeService"></param>
|
||||
public CodeFrtController(ICodeFrtService invokeService)
|
||||
{
|
||||
_invokeService = invokeService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("GetCodeFrtList")]
|
||||
public DataResult<List<CodeFrtRes>> GetCodeFrtList([FromBody] PageRequest request)
|
||||
{
|
||||
var res = _invokeService.GetClientListByPage(request);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("EditCodeFrt")]
|
||||
public DataResult EditCodeFrt([FromBody] CodeFrtReq model)
|
||||
{
|
||||
var res = _invokeService.EditClientCodeFrt(model);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("GetCodeFrtInfo")]
|
||||
public DataResult<CodeFrtRes> GetCodeFrtInfo([FromQuery] string id)
|
||||
{
|
||||
var res = _invokeService.GetClientCodeFrtInfo(id);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取付费方式列表-基础库
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("GetBasicsCodeFrtList")]
|
||||
public DataResult<List<CodeFrtRes>> GetBasicsCodeFrtList([FromBody] PageRequest request)
|
||||
{
|
||||
var res = _invokeService.GetCodeFrtList(request);
|
||||
return res;
|
||||
}
|
||||
/// <summary>
|
||||
/// 导入付费方式类型-基础库
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("ImportCodeFrt")]
|
||||
public DataResult ImportCodeFrt([FromBody] IdModel req)
|
||||
{
|
||||
var res = _invokeService.ImportCodeFrt(req);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前租户已有的付费方式
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("GetExistCodeFrtList")]
|
||||
public DataResult<List<string>> GetExistCodeFrtList()
|
||||
{
|
||||
var res = _invokeService.GetExistCodeFrtList();
|
||||
return res;
|
||||
}
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
using DS.Module.Core;
|
||||
using DS.Module.Core.Data;
|
||||
using DS.WMS.Core.Code.Dtos;
|
||||
using DS.WMS.Core.Code.Interface;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace DS.WMS.MainApi.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// 结算方式服务
|
||||
/// </summary>
|
||||
public class CodeStlModeController : ApiController
|
||||
{
|
||||
private readonly ICodeStlModeService _invokeService;
|
||||
|
||||
/// <summary>
|
||||
/// 构造函数
|
||||
/// </summary>
|
||||
/// <param name="invokeService"></param>
|
||||
public CodeStlModeController(ICodeStlModeService invokeService)
|
||||
{
|
||||
_invokeService = invokeService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("GetCodeStlModeList")]
|
||||
public DataResult<List<CodeStlModeRes>> GetCodeStlModeList([FromBody] PageRequest request)
|
||||
{
|
||||
var res = _invokeService.GetClientListByPage(request);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("EditCodeStlMode")]
|
||||
public DataResult EditCodeStlMode([FromBody] CodeStlModeReq model)
|
||||
{
|
||||
var res = _invokeService.EditClientCodeStlMode(model);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 详情
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("GetCodeStlModeInfo")]
|
||||
public DataResult<CodeStlModeRes> GetCodeStlModeInfo([FromQuery] string id)
|
||||
{
|
||||
var res = _invokeService.GetClientCodeStlModeInfo(id);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取结算方式列表-基础库
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("GetBasicsCodeStlModeList")]
|
||||
public DataResult<List<CodeStlModeRes>> GetBasicsCodeStlModeList([FromBody] PageRequest request)
|
||||
{
|
||||
var res = _invokeService.GetCodeStlModeList(request);
|
||||
return res;
|
||||
}
|
||||
/// <summary>
|
||||
/// 导入结算方式类型-基础库
|
||||
/// </summary>
|
||||
/// <param name="req"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Route("ImportCodeStlMode")]
|
||||
public DataResult ImportCodeStlMode([FromBody] IdModel req)
|
||||
{
|
||||
var res = _invokeService.ImportCodeStlMode(req);
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取当前租户已有的结算方式
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("GetExistCodeStlModeList")]
|
||||
public DataResult<List<string>> GetExistCodeStlModeList()
|
||||
{
|
||||
var res = _invokeService.GetExistCodeStlModeList();
|
||||
return res;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue