Commit 6c637e93 by lizefeng

修复缺货改零推送,查询bug

parent 182d7044
......@@ -13,6 +13,7 @@ namespace AutoGeneratePurchaseAdvise
{
Console.WriteLine("采购建议计算任务启动...");
// 创建采购计划
//PurchaseAdviseServices.Generate();
//PurchaseAdviseServices.AutoPushBuySys();
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{
......
......@@ -478,11 +478,12 @@ and not exists ( select * from dc_auto_shortage_push where dc_auto_shortage_push
t1.warehouse_code,
now() as 'push_date',
0 as 'stocks',
2 as 'type' from dc_base_stock as t1
2 as 'type' from dc_base_stock as t1
left join dc_mid_transit as t2 on t1.warehouse_code =t2.warehouse_code and t1.bailun_sku =t2.bailun_sku
left join dc_base_warehouse as t_db on t1.warehouse_code = t_db.warehouse_code
left join dc_base_sku as t3 on t1.bailun_sku = t3.bailun_sku
where t1.usable_stock<=0 and t1.bailun_sku!=''
and ( t_db.hq_type!='国内仓' or t2.buyer_name not in ('张莹霞','张莹霞1','黄镜洁','赵美聪') )
and ( t_db.hq_type!='国内仓' or t3.buyer_name not in ('张莹霞','张莹霞1','黄镜洁','赵美聪') )
and t1.warehouse_code in ('AU4PXBL','BLGZ03','DYGXC','GB4PXBL','GBBLJW','GBYKD','GZBLWH','QYBLZZ','US4PXBL','USGCBL')
and (
case
......
......@@ -17,7 +17,6 @@ namespace AutoTurnOver.Utility
}
public static string ToJson(this object obj, bool hasTime = false)
{
//JsonSerializerSettings jss = new JsonSerializerSettings();
string jsonString = JsonConvert.SerializeObject(obj);
string p = @"\\/Date\((\d+)\)\\/";
MatchEvaluator matchEvaluator = null;
......
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