|
@@ -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);
|
|
|
}
|