|
|
@@ -42,14 +42,7 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
import com.fs.common.annotation.Log;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
|
@@ -165,7 +158,7 @@ public class FsUserController extends BaseController
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('his:user:exportOpenId')")
|
|
|
@PostMapping("/exportOpenId")
|
|
|
- public void exportOpenIdList(HttpServletResponse response) throws IOException {
|
|
|
+ public void exportOpenIdList(HttpServletResponse response, @RequestParam(required = false) Long projectId) throws IOException {
|
|
|
int batchSize = 10000; // 每批处理1000条
|
|
|
long lastId = 0; // 从0开始
|
|
|
boolean hasMore = true;
|
|
|
@@ -184,7 +177,7 @@ public class FsUserController extends BaseController
|
|
|
int rowNum = 1;
|
|
|
|
|
|
while (hasMore) {
|
|
|
- List<UserOpenIdVO> batchList = fsUserService.selectOpenIdList(lastId, batchSize);
|
|
|
+ List<UserOpenIdVO> batchList = fsUserService.selectOpenIdList(lastId, batchSize, projectId);
|
|
|
|
|
|
if (batchList.isEmpty()) {
|
|
|
hasMore = false;
|