|
@@ -1,12 +1,12 @@
|
|
|
package com.persagy.dmp.digital.client;
|
|
|
|
|
|
import cn.hutool.extra.spring.SpringUtil;
|
|
|
+import com.fasterxml.jackson.databind.node.ArrayNode;
|
|
|
import com.fasterxml.jackson.databind.node.ObjectNode;
|
|
|
import com.persagy.dmp.basic.dto.RequestData;
|
|
|
import com.persagy.dmp.basic.model.QueryCriteria;
|
|
|
import com.persagy.dmp.common.model.response.CommonResult;
|
|
|
import com.persagy.dmp.common.utils.ResultHelper;
|
|
|
-import com.persagy.dmp.define.entity.ObjectTypeDefine;
|
|
|
import com.persagy.dmp.digital.entity.ObjectDigital;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -266,4 +266,24 @@ public class DigitalObjectFacade {
|
|
|
return client.batchUpdateClassCodesByIds(groupCode,
|
|
|
projectId, appId, userId, objectDigitals);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增 更新 验证对象,将验证失败的信息放到ObjectDigital。mark中,并返回所有验证失败的记录
|
|
|
+ * @param groupCode: 集团编码
|
|
|
+ * @param projectId: 项目ID
|
|
|
+ * @param appId: 应用ID
|
|
|
+ * @param userId: 用户ID
|
|
|
+ * @param voList
|
|
|
+ * @return List<ObjectDigital>
|
|
|
+ */
|
|
|
+ public static List<ObjectDigital> validateInfoCodeAndGetErrorList(
|
|
|
+ @RequestParam("groupCode") String groupCode,
|
|
|
+ @RequestParam("projectId") String projectId,
|
|
|
+ @RequestParam("appId") String appId,
|
|
|
+ @RequestParam("userId") String userId,
|
|
|
+ @RequestBody ArrayNode voList){
|
|
|
+ return client.validateInfoCodeAndGetErrorList(groupCode, projectId, appId, userId, voList);
|
|
|
+ }
|
|
|
}
|