diff --git a/app/db_cross_delay.py b/app/db_cross_delay.py index 127864f..db7e238 100644 --- a/app/db_cross_delay.py +++ b/app/db_cross_delay.py @@ -47,7 +47,7 @@ class CrossDbHelper(TableDbHelperBase): crossids = ','.join(["'" + str(item) + "'" for item in crossid_list]) sql = """ select * from cross_doctor_matedata.cross_phase_problems_record where crossid in (%s) and first_date <= '%s' and (end_date >= '%s' or end_date is null) - """ % (crossids, min_date, first_date) + """ % (crossids, first_date, min_date) return self.do_select(sql) def query_cross_examine_records_nostarthm(self, first_date, crossid, end_date):