修复问题

usertest
cjy 4 months ago
parent 6038595444
commit 286378a08e

@ -130,12 +130,12 @@ namespace DS.WMS.MainApi.Controllers
/// <summary> /// <summary>
/// 获取Json打印信息 /// 获取Json本地打印信息
/// </summary> /// </summary>
/// <param name="req"></param> /// <param name="req"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
[Route("GetOpenJsonPrintInfo")] [Route("GetJsonPrintInfoAsync")]
public async Task<DataResult<string>> GetJsonPrintInfoAsync([FromBody] OpenJsonPrintReq req) public async Task<DataResult<string>> GetJsonPrintInfoAsync([FromBody] OpenJsonPrintReq req)
{ {

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<NameOfLastUsedPublishProfile>E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.MainApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile> <NameOfLastUsedPublishProfile>D:\Code\DS\ds8-solution-pro\ds-wms-service\DS.WMS.MainApi\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

@ -18,7 +18,7 @@ namespace DS.WMS.PrintApi.Service
{ {
using (var db = SqlSugarUtil.GetInstance()) using (var db = SqlSugarUtil.GetInstance())
{ {
var template = db.Queryable<SysPrintTemplate>().Where(x => x.Id == req.TemplateId).First(); var template = db.Queryable<SysPrintTemplate>().Filter(null,true).Where(x => x.Id == req.TemplateId).First();
if (template == null) if (template == null)
{ {
return await Task.FromResult(PrintDataResult.Failed("打印模板不存在!")); return await Task.FromResult(PrintDataResult.Failed("打印模板不存在!"));

Loading…
Cancel
Save