| | |
| | | { |
| | | services.AddControllers(); |
| | | |
| | | // 注册 HttpContextAccessor |
| | | services.AddHttpContextAccessor(); |
| | | |
| | | // 注册 RequestInfo 为 Scoped 服务 |
| | | services.AddScoped<RequestInfo>(); |
| | | |
| | | // 读取 系统 设置并注入到服务中 |
| | | services.Configure<AppSettings>( |
| | | Configuration.GetSection("AppSettings")); |
| | |
| | | |
| | | // 修复:补充获取 womdaa 对象 |
| | | var daa001Value = query.daa001?.ToString(); |
| | | var womdaa = Db.Ado.SqlQuery<dynamic>("EXEC prc_pda_getDaaInfo @daa001", parameters).First(); |
| | | var daaInfoParameters = new[] |
| | | { |
| | | new SugarParameter("@daa001", query.daa001) |
| | | }; |
| | | var womdaa = Db.Ado.SqlQuery<dynamic>("EXEC prc_pda_getDaaInfo @daa001", daaInfoParameters).FirstOrDefault(); |
| | | |
| | | if (womdaa == null) |
| | | { |