车辆有效期判断修改
parent
911f5e6656
commit
6f99414aa3
|
|
@ -110,8 +110,8 @@ public class OrderclusterTruckService extends BaseService {
|
||||||
" left join ordercluster c on c.id = t.ordercluster_id \n" +
|
" left join ordercluster c on c.id = t.ordercluster_id \n" +
|
||||||
" where c.supermarket_id = ? \n" +
|
" where c.supermarket_id = ? \n" +
|
||||||
" and c.state < ?" +
|
" and c.state < ?" +
|
||||||
" and c.start_time >= ? \n" +
|
" and c.start_time <= ? \n" +
|
||||||
" and c.cutoff_time <= ? \n" +
|
" and c.cutoff_time >= ? \n" +
|
||||||
" and t.truck_license = ? \n" +
|
" and t.truck_license = ? \n" +
|
||||||
" limit 0,1",
|
" limit 0,1",
|
||||||
supermarket_id,
|
supermarket_id,
|
||||||
|
|
@ -139,8 +139,8 @@ public class OrderclusterTruckService extends BaseService {
|
||||||
" left join ordercluster c on c.id = t.ordercluster_id \n" +
|
" left join ordercluster c on c.id = t.ordercluster_id \n" +
|
||||||
" where c.supermarket_id = ? \n" +
|
" where c.supermarket_id = ? \n" +
|
||||||
" and c.state < ?" +
|
" and c.state < ?" +
|
||||||
" and c.start_time >= ? \n" +
|
" and c.start_time <= ? \n" +
|
||||||
" and c.cutoff_time <= ? \n" +
|
" and c.cutoff_time >= ? \n" +
|
||||||
" and t.truck_license = ? \n" +
|
" and t.truck_license = ? \n" +
|
||||||
" limit 0,1",
|
" limit 0,1",
|
||||||
supermarket_id,
|
supermarket_id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue