代码提交

dev
徐杰盟 2025-03-06 09:48:40 +08:00
parent edb417fd62
commit 0856635498
1 changed files with 2 additions and 2 deletions

View File

@ -501,14 +501,14 @@ public class OrderclusterSyncService extends BaseSyncService {
ts.add(0, query_start_time + " 00:00:00");
ts.add(1, query_cutoff_time + " 23:59:59");
ts.add(2, String.valueOf(time_interval));
ts.add(2, "2," +time_interval);
List<Record> chkduk = Db.find(
"select * from ordercluster_truck t \n" +
" left join ordercluster c on c.id = t.ordercluster_id\n" +
" where c.state < 5 \n" + // OrderStateEnum.RECEIVED.getStateid()
" and c.start_time <= ? \n" +
" and c.cutoff_time >= ? \n" +
" and c.time_interval = ? \n" +
" and c.time_interval in (?) \n" +
" and t.truck_license in (" + StrKit.join(tsql, ",") + ")", ts.toArray());
if (chkduk != null && !chkduk.isEmpty()) {