Commit 3c211233 authored by 韩桐桐's avatar 韩桐桐

fix(jg):bug修改,设备注册时补充注册表REGISTER_STATE字段

parent ba1b9cb9
......@@ -1203,8 +1203,11 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
queryWrapper.eq("name", "已注册");
queryWrapper.eq("is_delete", false);
List<DataDictionary> list = iDataDictionaryService.list(queryWrapper);
DataDictionary dictionary = list.get(0);
return ObjectUtils.isEmpty(dictionary) ? "" : dictionary.getCode();
if (!list.isEmpty() && list.get(0) != null) {
DataDictionary dictionary = list.get(0);
return Optional.ofNullable(dictionary).map(DataDictionary::getCode).orElse("");
}
return "";
}
private String batchSubmitOrUpdate(LinkedHashMap equipmentClassForm,LinkedHashMap equipmentInfoForm,LinkedHashMap equipmentParamsForm) {
......
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