|
@@ -41,7 +41,7 @@ public class PushJob implements Job {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
UpdateWrapper updateWrapper=new UpdateWrapper();
|
|
@@ -50,9 +50,11 @@ public class PushJob implements Job {
|
|
|
for (SyShippingOrder order : orderList){
|
|
|
orderIds.add(order.getId());
|
|
|
}
|
|
|
- updateWrapper.in("id",orderIds);
|
|
|
- updateWrapper.set("time_Stuta","4");
|
|
|
- syShippingOrderMapper.update(null,updateWrapper);
|
|
|
+ if(orderIds.size()>0){
|
|
|
+ updateWrapper.in("id",orderIds);
|
|
|
+ updateWrapper.set("time_Stuta","4");
|
|
|
+ syShippingOrderMapper.update(null,updateWrapper);
|
|
|
+ }
|
|
|
System.out.println("orderList.size\t"+orderList.size());
|
|
|
for (SyShippingOrder order : orderList){
|
|
|
Map<String,Object> codeMaps=new HashMap<>();
|
|
@@ -73,7 +75,7 @@ public class PushJob implements Job {
|
|
|
String names=codeMaps.get("error").toString();
|
|
|
order.setFailMesage(names.substring(1,names.length()-1));
|
|
|
}
|
|
|
-
|
|
|
+ syShippingOrderMapper.updateById(order);
|
|
|
|
|
|
}
|
|
|
long endTime = System.currentTimeMillis();
|