Commit 4d72aa27 by guanzhenshan

获取半成品采购单明细过滤采购换货单数据

parent 523bfdc5
......@@ -185,7 +185,7 @@ namespace Bailun.DC.Services
/// <returns></returns>
public List<dc_semi_purchase_info> ListSemiPurchase(DateTime start, DateTime end)
{
var sql = $@"select * from dc_semi_purchase_info t1 where detail_delstatus=0 and `status`>-1 and deliver_name !='广州哈倪蔓生物科技有限公司' and deliver_name!='广州市花都区花城市象贸易商行-滋柔' and deliver_name!='LEIKESAER INFORMATION SERVICE LIMITED' and t1.create_time>='{start.ToString("yyyy-MM-dd")}' and t1.create_time<'{end.AddDays(1).ToString("yyyy-MM-dd")}'";
var sql = $@"select * from dc_semi_purchase_info t1 where detail_delstatus=0 and `status`>-1 and deliver_name !='广州哈倪蔓生物科技有限公司' and deliver_name!='广州市花都区花城市象贸易商行-滋柔' and deliver_name!='LEIKESAER INFORMATION SERVICE LIMITED' and purchase_id like 'P%' and t1.create_time>='{start.ToString("yyyy-MM-dd")}' and t1.create_time<'{end.AddDays(1).ToString("yyyy-MM-dd")}'";
using (var cn = new MySqlConnection(Common.GlobalConfig.ConnectionString))
{
......
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