Commit 189fe0c4 authored by 赵啸非's avatar 赵啸非

添加产品升级功能

parent 7c26f6cd
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
// 是否显示弹出层 // 是否显示弹出层
open: false, open: false,
direction:"rtl", direction:"rtl",
toString:[ toString:["productId"
], ],
toDate:[ toDate:[
], ],
......
...@@ -24,7 +24,7 @@ public class ProductVersionInfo implements Serializable { ...@@ -24,7 +24,7 @@ public class ProductVersionInfo implements Serializable {
/** /**
* 版本号 * 版本号
*/ */
private String version; private Integer version;
/** /**
* 备注信息 * 备注信息
......
...@@ -438,7 +438,9 @@ public class DeviceApiController { ...@@ -438,7 +438,9 @@ public class DeviceApiController {
if (ObjectUtils.isEmpty(productVersionEntity)) if (ObjectUtils.isEmpty(productVersionEntity))
throw new AppException(DEVICE_VERSION_UNEXIST, DEVICE_VERSION_UNEXIST_CONTENT); throw new AppException(DEVICE_VERSION_UNEXIST, DEVICE_VERSION_UNEXIST_CONTENT);
ProductVersionInfo productVersionInfo = new ProductVersionInfo(); ProductVersionInfo productVersionInfo = new ProductVersionInfo();
BeanUtils.copyProperties(productVersionEntity, productVersionInfo, BeanUtil.getNullPropertyNames(productVersionEntity)); BeanUtils.copyProperties(productVersionEntity, productVersionInfo, BeanUtil.getNullPropertyNames(productVersionEntity));
buildDownloadUrl(productVersionEntity,productVersionInfo); buildDownloadUrl(productVersionEntity,productVersionInfo);
String content = EncryptUtil.myEnscrt(JSON.toJSONString(productVersionInfo), 9, DES_STR, ENCRYPT_STR); String content = EncryptUtil.myEnscrt(JSON.toJSONString(productVersionInfo), 9, DES_STR, ENCRYPT_STR);
deviceResp.setContent(content); deviceResp.setContent(content);
......
...@@ -149,7 +149,7 @@ POST {{baseUrl}}/api/checkVersion ...@@ -149,7 +149,7 @@ POST {{baseUrl}}/api/checkVersion
Content-Type: application/json Content-Type: application/json
{ {
"deviceCode": "70-4A-0E-BC-EE-8A" "deviceCode": "18-93-7F-C0-AD-B5"
} }
###设备上报 ###设备上报
......
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