lisai17@sina.com 2020-09-01 14:56:03 +08:00
parent 29f164d95c
commit 51298f9184
1 changed files with 13 additions and 2 deletions

View File

@ -266,6 +266,17 @@ public class OrderTempSyncService {
return Result.failedstr("未查到有效的单价信息");
}
OrderclusterTruck ot = OrderclusterTruck.dao.findFirst("select * from ordercluster_truck t \n" +
" where t.truck_license = ? \n" +
" and t.ordercluster_id = ? ",
transport.getTruckLicense(),
ordercluster_id
);
if (ot == null) {
return Result.failedstr("【%s】不是今日分配车辆", transport.getTruckLicense());
}
BigDecimal min = new BigDecimal(0.001);
Date now = new Date();
SyncTask synctask = new SyncTask();
@ -493,9 +504,9 @@ public class OrderTempSyncService {
OrderclusterTruck ot = OrderclusterTruck.dao.findFirst("select * from ordercluster_truck t \n" +
" where t.truck_license = ? \n" +
" and t.valid_date = ? ",
" and t.ordercluster_id = ? ",
transport.getTruckLicense(),
DateTimeUtil.sdf.get().format(transport.getInTime())
ordercluster_id
);
if (ot == null) {