Ver código fonte

新增后立即调用执行

lzk 1 mês atrás
pai
commit
add9157659

+ 3 - 1
3.Service/SMP.Service/Finance/IServiceBillSpreadService.cs

@@ -1,4 +1,5 @@
 using Dapper;
+using Nest;
 using SMP.Common.Mq;
 using SMP.Data;
 using SMP.Data.Compute;
@@ -777,7 +778,8 @@ namespace SMP.Service.Finance
                 }
                 else
                 {
-                    await _unitOfWork.InsertAsync(param);
+                    var Id= await _unitOfWork.InsertAsync(param);
+                    await ExecuteSpreadServiceBillTask((int)Id);
                 }
             }
             catch (Exception ex)