Commit 9c9feceb by guanzhenshan

解决无法查看其它明细的问题

parent df535080
......@@ -7002,9 +7002,13 @@ group by currency";
{
var sql = $"select t1.*,t2.origin_order_id,t2.bailun_order_id from dc_month_sales_profit_orderdetail t1 join dc_base_oms_sku t2 on t1.orderskuid=t2.id where t1.month='{month}' ";
if(!string.IsNullOrEmpty(financecategory))
if (!string.IsNullOrEmpty(financecategory) && financecategory != "其他")
{
sql += $" and t1.financecategoryname like '{financecategory.Replace("产品","")}%'";
sql += $" and t1.financecategoryname like '{financecategory.Replace("产品", "")}%'";
}
else if (financecategory == "其他")
{
sql += $" and t1.financecategoryname ='' ";
}
using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString_read))
......
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