Commit e1a7d1d0 by zhouminghui

fix

parent 7d48dd07
......@@ -541,17 +541,26 @@ namespace Bailun.DC.WebApi.Controllers
ms.Position = 0;
return File(ms, "text/csv", $"{input.Month}_月销售费用合计》费用利润表明细.csv");
}
/// <summary>
/// 同步月利润销售报告
/// </summary>
/// <param name="time"></param>
/// <returns></returns>
[HttpGet("syncMonthSalesProfit")]
public object GetReFundTest(DateTime? time)
public bool SyncMonthSalesProfit(DateTime? time)
{
return new FinanceService().SyncMonthSalesProfit(time);
//var sql = "select * from dc_month_sales_profit_orderdetail limit 1";
//var data = Dapper.SimpleCRUD.Query<dc_month_sales_profit_orderdetail>(sql, null, Common.GlobalConfig.ConnectionString).FirstOrDefault();
//return data;
}
/// <summary>
/// 同步月销售利润报告销售额明细汇总
/// </summary>
/// <param name="date"></param>
/// <returns></returns>
[HttpGet("syncMonthSalesProfiOrderDetail")]
public object SyncMonthSalesProfiOrderDetail(DateTime? date)
public bool SyncMonthSalesProfiOrderDetail(DateTime? date)
=>new FinanceService().SyncMonthSalesProfiOrderDetail(date);
[HttpGet("testRedis")]
public object TestRedis()
......@@ -563,7 +572,7 @@ namespace Bailun.DC.WebApi.Controllers
}
catch (Exception e)
{
return e.Message;
return e;
}
}
#endregion
......
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