Commit 5397cdc0 authored by 赵啸非's avatar 赵啸非

添加appconfig

parent a0f24b67
...@@ -81,10 +81,7 @@ public class DevicePdu extends BaseEntityLong { ...@@ -81,10 +81,7 @@ public class DevicePdu extends BaseEntityLong {
* 备注 * 备注
*/ */
private String deviceRemark; private String deviceRemark;
/**
* 设备来源(0.旧设备,1.新设备)
*/
private Integer source;
/** /**
* 设备生产厂商ID * 设备生产厂商ID
...@@ -149,6 +146,5 @@ public void initAttrValue(){ ...@@ -149,6 +146,5 @@ public void initAttrValue(){
this.deviceRemark = null; this.deviceRemark = null;
this.source = 1;
} }
} }
\ No newline at end of file
...@@ -119,7 +119,10 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe ...@@ -119,7 +119,10 @@ public class DeviceController extends BaseCRUDJsonBodyMappingController<DeviceSe
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
Map<String, Object> model = new HashMap<>(); Map<String, Object> model = new HashMap<>();
String busiDesc = this.getModuleDesc() + "设备"; String busiDesc = this.getModuleDesc() + "设备";
try { try {
if (ObjectUtils.isEmpty(deviceEntity.getId())) throw new AppException("设备ID不能为空!");
if (ObjectUtils.isEmpty(deviceEntity.getEnabled())) throw new AppException("设备启用停用状态不能为空!");
this.service.deviceEnabled(deviceEntity.getId(), deviceEntity.getEnabled(), getContext()); this.service.deviceEnabled(deviceEntity.getId(), deviceEntity.getEnabled(), getContext());
recordSysLog(request, busiDesc + EnabledEnum.getByValue(deviceEntity.getEnabled()).getDesc() + " 【成功】"); recordSysLog(request, busiDesc + EnabledEnum.getByValue(deviceEntity.getEnabled()).getDesc() + " 【成功】");
jsonObject.put(KEY_RESULT_DATA, model); jsonObject.put(KEY_RESULT_DATA, model);
......
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