|
@@ -114,18 +114,17 @@ public class ObjectDigitalController{
|
|
|
@PostMapping("/create")
|
|
|
@Deprecated
|
|
|
public CommonResult<List<ObjectDigital>> createBatch(@RequestBody ArrayNode array){
|
|
|
- throw new BusinessException("##########################################");
|
|
|
//基础参数校验
|
|
|
-// ParamCheckUtil.checkParam(CommonConstant.QUERY_GROUPCODE,CommonConstant.QUERY_PROJECTID);
|
|
|
-// //创建对象入参校验
|
|
|
-// createInstanceParamVerify(array);
|
|
|
-//
|
|
|
-// List<ObjectDigital> voList = JsonNodeUtils.toEntity(array, ObjectDigital.class, ObjectDigital.EXTRA_COLUMN);
|
|
|
-// //创建默认条件
|
|
|
-// createDefaultValue(voList);
|
|
|
-// //批量新增对象信息
|
|
|
-// voList = service.insert(voList);
|
|
|
-// return ResultHelper.multi(voList);
|
|
|
+ ParamCheckUtil.checkParam(CommonConstant.QUERY_GROUPCODE,CommonConstant.QUERY_PROJECTID);
|
|
|
+ //创建对象入参校验
|
|
|
+ createInstanceParamVerify(array);
|
|
|
+
|
|
|
+ List<ObjectDigital> voList = JsonNodeUtils.toEntity(array, ObjectDigital.class, ObjectDigital.EXTRA_COLUMN);
|
|
|
+ //创建默认条件
|
|
|
+ createDefaultValue(voList);
|
|
|
+ //批量新增对象信息
|
|
|
+ voList = service.insert(voList);
|
|
|
+ return ResultHelper.multi(voList);
|
|
|
}
|
|
|
|
|
|
@PostMapping("/updateOne")
|