Commit 41f78743 authored by 赵啸非's avatar 赵啸非

添加事项分类相关信息表

parent 7d78ef0a
...@@ -43,6 +43,12 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D ...@@ -43,6 +43,12 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
private String password; private String password;
@Override
protected String getExtKey(DeviceEntity data) {
return data.getDeviceCode();
}
@Override @Override
public void active(String deviceCode, Context context) { public void active(String deviceCode, Context context) {
DeviceEntity deviceEntity = this.selectOne(new DeviceQuery().deviceCode(deviceCode)); DeviceEntity deviceEntity = this.selectOne(new DeviceQuery().deviceCode(deviceCode));
......
...@@ -143,7 +143,7 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe ...@@ -143,7 +143,7 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
Map<String, Object> model = new HashMap<>(); Map<String, Object> model = new HashMap<>();
String busiDesc = this.getModuleDesc() + "设备"; String busiDesc = this.getModuleDesc() + "设备";
try { 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_DATA, entity);
jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS); jsonObject.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
} catch (Exception e) { } 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