Browse Source

查询设备关联部件分类bug修复

linhuili 3 years ago
parent
commit
599e781669

+ 1 - 1
src/main/java/com/persagy/proxy/report/controller/AdmReportEquipController.java

@@ -111,7 +111,7 @@ public class AdmReportEquipController {
             AdmEquipment admEquipment = equipmentList.get(0);
             QueryCriteria defineCriteria = new QueryCriteria();
             ObjectNode criteria = JsonNodeFactory.instance.objectNode();
-            criteria.put("code", admEquipment.getClassCode());
+            criteria.put("equipmentCode", admEquipment.getClassCode());
             defineCriteria.setCriteria(criteria);
             AdmResponse defRes = dictService.doQueryObjectType(AdmContextUtil.toDmpContext(), defineCriteria, AdmObjectType.class);
             if (CollUtil.isNotEmpty(defRes.getContent())) {