Commit 26f53d78 authored by 赵啸非's avatar 赵啸非

添加批量激活设备

parent eedb2527
...@@ -496,8 +496,8 @@ public class DeviceApiController { ...@@ -496,8 +496,8 @@ public class DeviceApiController {
//查找版本号最大的. //查找版本号最大的.
ProductVersionQuery productVersionQuery = new ProductVersionQuery(); ProductVersionQuery productVersionQuery = new ProductVersionQuery();
productVersionQuery.setProductId(deviceEntity.getProductId()); productVersionQuery.setProductId(deviceEntity.getProductId());
productVersionQuery.setOrderColList(Arrays.asList(new OrderCol("version"))); productVersionQuery.setOrderColList(Arrays.asList(new OrderCol("version",OrderCol.DESCENDING)));
productVersionQuery.setOrderKind(OrderCol.DESCENDING); //productVersionQuery.setOrderKind(OrderCol.DESCENDING);
ProductVersionEntity productVersionEntity = productVersionService.selectOne(productVersionQuery); ProductVersionEntity productVersionEntity = productVersionService.selectOne(productVersionQuery);
if (ObjectUtils.isEmpty(productVersionEntity)) { if (ObjectUtils.isEmpty(productVersionEntity)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment