Commit 3ff5ef9b authored by 赵啸非's avatar 赵啸非

添加设备相关信息

parent 7a3e9bb4
Pipeline #2674 failed with stages
......@@ -42,6 +42,11 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
@Value("${token.password:admin}")
private String password;
@Override
protected String getExtKey(DeviceEntity data) {
return data.getDeviceCode();
}
@Override
public void active(String deviceCode, Context context) {
......
......@@ -121,7 +121,7 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
Map<String, Object> model = new HashMap<>();
String busiDesc = this.getModuleDesc() + "设备";
try {
DeviceEntity entity = this.service.getCache(deviceEntity.getDeviceCode());
DeviceEntity entity = this.service.getExtCache(deviceEntity.getDeviceCode());
jsonObject.put(KEY_RESULT_DATA, entity);
jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
} catch (Exception e) {
......
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