代码提交
parent
edb417fd62
commit
0856635498
|
|
@ -501,14 +501,14 @@ public class OrderclusterSyncService extends BaseSyncService {
|
||||||
|
|
||||||
ts.add(0, query_start_time + " 00:00:00");
|
ts.add(0, query_start_time + " 00:00:00");
|
||||||
ts.add(1, query_cutoff_time + " 23:59:59");
|
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(
|
List<Record> chkduk = Db.find(
|
||||||
"select * from ordercluster_truck t \n" +
|
"select * from ordercluster_truck t \n" +
|
||||||
" left join ordercluster c on c.id = t.ordercluster_id\n" +
|
" left join ordercluster c on c.id = t.ordercluster_id\n" +
|
||||||
" where c.state < 5 \n" + // OrderStateEnum.RECEIVED.getStateid()
|
" where c.state < 5 \n" + // OrderStateEnum.RECEIVED.getStateid()
|
||||||
" and c.start_time <= ? \n" +
|
" and c.start_time <= ? \n" +
|
||||||
" and c.cutoff_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());
|
" and t.truck_license in (" + StrKit.join(tsql, ",") + ")", ts.toArray());
|
||||||
|
|
||||||
if (chkduk != null && !chkduk.isEmpty()) {
|
if (chkduk != null && !chkduk.isEmpty()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue