DS7_JinGang
dengyu 1 year ago
parent a8b4f5fac5
commit 774a3473fa

@ -22,16 +22,16 @@
<add key="ReceiveMQUri" value="amqp://hechuan_booking:hechuan_booking123@47.104.207.5:12567/hechuan_booking" />
<add key="ReceiveMQUri" value="amqp://djy_booking_new:123qwe@60.209.125.238:12567/djy_booking_new" />
-->
<!-- 测试地址
<!-- 测试地址 -->
<add key="ReceiveMQUri" value="amqp://booking_order:booking_order@60.209.125.238:40101/djy_booking_new" />
-->
<!-- 正式地址-->
<add key="ReceiveMQUri" value="amqp://hechuan_booking:hechuan_booking123@47.104.207.5:12567/hechuan_booking" />
<!-- 正式地址
<add key="ReceiveMQUri" value="amqp://hechuan_booking:hechuan_booking123@47.104.207.5:12567/hechuan_booking" />
-->
<!--是否消费数据-->
<add key="USEDATA" value="false" />
<add key="USEDATA" value="true" />
</appSettings>
<connectionStrings>

@ -2188,6 +2188,7 @@ SELECT @ps_BillNo as N'billno'";
logger.Debug($"更新:{newhead.主提单号};{newhead.DJYID}");
AfterSave(newhead.);
//DS6Data.SaveChanges();
}
@ -2301,9 +2302,10 @@ SELECT @ps_BillNo as N'billno'";
mark = 3.3m;
logger.Debug($"新增:{newhead.主提单号};{newhead.DJYID}");
DS6Data.SaveChanges();
logger.Debug($"新增:{newhead.主提单号};{newhead.DJYID}");
AfterSave(newhead.);
}
}
@ -2327,6 +2329,28 @@ SELECT @ps_BillNo as N'billno'";
}
}
public static void AfterSave(string ) {
try
{
//20230717 保存业务后,执行一个存储过程
using (DS6DataContext context = new DS6DataContext())
{
SqlParameter bsno = new SqlParameter("@bsno", );
int count = context.Database.ExecuteSqlCommand("exec p_exec_accmonth @bsno", bsno);
context.SaveChanges();
logger.Debug($"AfterSave:{编号};{count}");
}
}
catch (Exception e) {
var str=JsonConvert.SerializeObject(e);
logger.Error($"AfterSave:{str}");
}
return ;
}
#region 原保存逻辑
//public static void DingCangToDS6_OLD(JArray jarr)

Loading…
Cancel
Save