qingfeng 2 years ago
parent
commit
790936006c
1 changed files with 0 additions and 7 deletions
  1. 0 7
      LIB/MIDDLE/SaftyCenter/Common/DBDownload.py

+ 0 - 7
LIB/MIDDLE/SaftyCenter/Common/DBDownload.py

@@ -46,25 +46,18 @@ class DBDownload:
         if self.mode==1:
             self.cursor.execute("select %s from %s where sn='%s' order by id desc limit 1" %(str,tablename,sn))
         elif self.mode==0:
-<<<<<<< HEAD
             if len(sn)>1:
                 self.cursor.execute("select %s from %s where sn='%s' and %s between '%s' and '%s'" %(str,tablename,sn,timename,st,sp))
             else:
                 self.cursor.execute("select %s from %s where %s between '%s' and '%s'" %(str,tablename,timename,st,sp))
-=======
-            self.cursor.execute("select %s from %s where sn='%s' and %s between '%s' and '%s'" %(str,tablename,sn,timename,st,sp))
->>>>>>> master
         elif self.mode==2:
             self.cursor.execute("select %s from %s where factory='%s'" %(str,tablename,factory))
         elif self.mode==3:
             self.cursor.execute("select %s from %s" %(str,tablename))
         elif self.mode==4:
             self.cursor.execute("select %s from %s where qrcode='%s' order by id desc limit 1" %(str,tablename,sn))
-<<<<<<< HEAD
         elif self.mode==5:
             self.cursor.execute("select %s from %s where info='%s'" %(str,tablename,timename))
-=======
->>>>>>> master
         res = self.cursor.fetchall()
         df_res = pd.DataFrame(res, columns=param)
         df_res = df_res.reset_index(drop=True)