Commit 837df04d authored by 赵啸非's avatar 赵啸非

修改校验

parent f809de90
......@@ -605,11 +605,11 @@ public class DeviceApiController {
productVersionQuery.setProductId(deviceEntity.getProductId());
productVersionQuery.setSiteId(deviceEntity.getSiteId());
productVersionQuery.setOrderColList(Arrays.asList(new OrderCol("version", OrderCol.DESCENDING)));
ProductVersionEntity productVersionEntity = productVersionService.find(productVersionQuery)
/* ProductVersionEntity productVersionEntity = productVersionService.find(productVersionQuery)
.stream()
// .filter(item -> StrUtil.endWith(item.getFilePath(), ".apk", true))
.findFirst().orElseGet(() -> null);
// ProductVersionEntity productVersionEntity = productVersionService.selectOne(productVersionQuery);
.filter(item -> StrUtil.endWith(item.getFilePath(), ".apk", true))
.findFirst().orElseGet(() -> null);*/
ProductVersionEntity productVersionEntity = productVersionService.selectOne(productVersionQuery);
if (ObjectUtils.isEmpty(productVersionEntity)) {
throw new AppException(DEVICE_VERSION_UNEXIST, DEVICE_VERSION_UNEXIST_CONTENT);
}
......
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