/// <summary>
 /// 判断扫描的快递单号是否存在指定任务里
 /// </summary>
 /// <param name="kd_billcode"></param>
 /// <param name="out_barcode"></param>
 /// <returns></returns>
 public bool IsThereTask(string kd_billcode, string out_barcode)
 {
     return(Common.Config.StartSqlSugar <bool>((db) =>
     {
         var outba = db.Queryable <pmw_billcode>()
                     .Any(a => a.kd_billcode == kd_billcode && a.order_code == out_barcode);
         if (!outba)
         {
             var orderInfo = db.Queryable <pmw_order>()
                             .Where(a => a.id == SqlFunc.IsNullToInt64(out_barcode))
                             .First();
             outba = db.Queryable <pmw_billcode>()
                     .Any(a => a.kd_billcode == kd_billcode && a.order_code == orderInfo.order_code);
         }
         return outba;
     }));
 }