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

添加事项分类相关信息表

parent 7d78ef0a
......@@ -43,6 +43,12 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
private String password;
@Override
protected String getExtKey(DeviceEntity data) {
return data.getDeviceCode();
}
@Override
public void active(String deviceCode, Context context) {
DeviceEntity deviceEntity = this.selectOne(new DeviceQuery().deviceCode(deviceCode));
......
......@@ -143,7 +143,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