示例#1
0
 //单次添加用户未打印排重
 public string AddCurrentPrintData(List <int> list, DateTime date)
 {
     if (list.Count > 0)
     {
         List <int> uniqueKey = dal.GetNotPrintedUniqueKey(user.ID, date);
         List <int> addIds    = list.FindAll(x => !uniqueKey.Contains(x));
         if (addIds.Count == 0)
         {
             return("添加成功,没有符合查询方案条件的【 新数据 】\r\n");
         }
         string ids    = string.Join(",", addIds);
         int    result = dal.AddCurrentPrintData(ids, user.ID, date);
         return($"成功添加{result}条数据 \r\n");
     }
     return("没有符合查询方案条件的数据 \r\n");
 }