Commit fb64f6f7 by wyc

自定义提取(区分医院)

parent 2a7e72a8
......@@ -45,7 +45,7 @@ public class CustomDataWrite : IAutoInjection
public void WriteDataToCustom(IWorkbook workbook, per_allot allot, ExcelStyle style, int allotId, string groupName, bool isSingle)
{
_logService.ReturnTheLog(allotId, groupName, 2, "自定义提取", $"测算表自定义提取准备执行", 1, isSingle);
var modules = exmoduleRepository.GetEntities(t => t.SheetType == (int)SheetType.Custom)?.OrderBy(t => t.ModuleName);
var modules = exmoduleRepository.GetEntities(t => t.SheetType == (int)SheetType.Custom&&t.HospitalId== allot.HospitalId)?.OrderBy(t => t.ModuleName);
if (modules == null || !modules.Any()) return;
var exscripts = exscriptRepository.GetEntities(t => modules.Select(s => s.TypeId).Contains(t.TypeId));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment