|
@@ -1,22 +1,26 @@
|
|
|
package com.github.zuihou.business.controller.tenantProductUser;
|
|
|
|
|
|
-import com.github.zuihou.business.tenantProductUser.entity.ImcsTenantProductresourceUser;
|
|
|
+import com.github.zuihou.base.R;
|
|
|
+import com.github.zuihou.base.controller.SuperController;
|
|
|
+import com.github.zuihou.business.tenantProductUser.dto.ImcsTenantProductresourceUserPageDTO;
|
|
|
import com.github.zuihou.business.tenantProductUser.dto.ImcsTenantProductresourceUserSaveDTO;
|
|
|
import com.github.zuihou.business.tenantProductUser.dto.ImcsTenantProductresourceUserUpdateDTO;
|
|
|
-import com.github.zuihou.business.tenantProductUser.dto.ImcsTenantProductresourceUserPageDTO;
|
|
|
+import com.github.zuihou.business.tenantProductUser.entity.ImcsTenantProductresourceUser;
|
|
|
import com.github.zuihou.business.tenantProductUser.service.ImcsTenantProductresourceUserService;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
-import java.util.stream.Collectors;
|
|
|
-import com.github.zuihou.base.controller.SuperController;
|
|
|
-import com.github.zuihou.base.R;
|
|
|
+import com.github.zuihou.security.annotation.PreAuth;
|
|
|
import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import com.github.zuihou.security.annotation.PreAuth;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
+import java.util.stream.Collectors;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -50,4 +54,18 @@ public class ImcsTenantProductresourceUserController extends SuperController<Imc
|
|
|
|
|
|
return R.success(baseService.saveBatch(imcsTenantProductresourceUserList));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 批量设置运维或维护人员
|
|
|
+ *
|
|
|
+ * @param productresourceUserList 人员关系列表
|
|
|
+ * @return 保存后的人员关系数据
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "批量设置运维或维护人员", notes = "批量设置运维或维护人员")
|
|
|
+ @PostMapping("/saveBatch")
|
|
|
+ public R<List<ImcsTenantProductresourceUser>> saveOrUpdateBatchProductresourceUser(@RequestBody List<ImcsTenantProductresourceUser> productresourceUserList) {
|
|
|
+ baseService.saveOrUpdateBatch(productresourceUserList);
|
|
|
+ return success(productresourceUserList);
|
|
|
+ }
|
|
|
+
|
|
|
}
|