Browse Source

资产统计时,统计成了设备

yucheng 3 years ago
parent
commit
9ff419d97b

+ 2 - 3
src/main/java/com/persagy/proxy/object/controller/AdmPropertyController.java

@@ -62,7 +62,6 @@ public class AdmPropertyController {
      */
     @PostMapping("/update")
     public AdmResponse update(@RequestBody AdmCreateRequest<AdmProperty> createRequest, @QueryParam("projectId") String projectId) throws Exception {
-        
         List<AdmProperty> vos = CollUtil.newArrayList(createRequest.getContent());
         vos = service.doUpdate(AdmContextUtil.toDmpContext(), AdmProperty.class, vos);
         return AdmResponse.success(vos);
@@ -78,7 +77,7 @@ public class AdmPropertyController {
      */
     @PostMapping("/query")
     public AdmResponse query(@RequestBody AdmQueryCriteria request) throws Exception {
-        request.setName("equipment");
+        request.setName(AdmProperty.OBJ_TYPE);
         return service.doQuery(AdmContextUtil.toDmpContext(), request, AdmProperty.class);
     }
 
@@ -92,7 +91,7 @@ public class AdmPropertyController {
      */
     @PostMapping("/count")
     public AdmResponse count(@RequestBody AdmQueryCriteria request) throws Exception {
-        request.setName("equipment");
+        request.setName(AdmProperty.OBJ_TYPE);
         request.setOnlyCount(true);
         return service.doQuery(AdmContextUtil.toDmpContext(), request, AdmProperty.class);
     }