Browse Source

Merge branch 'dev' into pro

qingfeng 2 years ago
parent
commit
9a3a2168ec
1 changed files with 0 additions and 14 deletions
  1. 0 14
      LIB/MIDDLE/SaftyCenter/Common/DBDownload.py

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

@@ -46,32 +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
-            self.cursor.execute("select %s from %s where sn='%s' and %s between '%s' and '%s'" %(str,tablename,sn,timename,st,sp))
-=======
-<<<<<<< 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
->>>>>>> dev
         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
-=======
-<<<<<<< HEAD
         elif self.mode==5:
             self.cursor.execute("select %s from %s where info='%s'" %(str,tablename,timename))
-=======
->>>>>>> master
->>>>>>> dev
         res = self.cursor.fetchall()
         df_res = pd.DataFrame(res, columns=param)
         df_res = df_res.reset_index(drop=True)