TASK: 批量生成 获取任务序号
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
package com.ai.da.controller;
|
||||
|
||||
import com.ai.da.common.config.MyTaskScheduler;
|
||||
import com.ai.da.common.response.PageBaseResponse;
|
||||
import com.ai.da.common.response.Response;
|
||||
import com.ai.da.mapper.primary.entity.LibraryModelPoint;
|
||||
import com.ai.da.mapper.primary.entity.ThreeDLayout;
|
||||
import com.ai.da.model.dto.*;
|
||||
import com.ai.da.model.enums.MannequinType;
|
||||
import com.ai.da.model.vo.*;
|
||||
import com.ai.da.service.ProjectService;
|
||||
import com.ai.da.service.UserLikeGroupService;
|
||||
import com.ai.da.service.WorkspaceService;
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||
@@ -33,6 +32,9 @@ public class ProjectController {
|
||||
@Resource
|
||||
private UserLikeGroupService userLikeGroupService;
|
||||
|
||||
@Resource
|
||||
private ProjectService projectService;
|
||||
|
||||
@PostMapping("/saveOrUpdate")
|
||||
@ApiOperationSupport(order = 1)
|
||||
@ApiOperation(value = "新增或编辑", notes = "传入project")
|
||||
@@ -131,4 +133,21 @@ public class ProjectController {
|
||||
public Response<Boolean> delete(@RequestParam("projectId") Long projectId) {
|
||||
return Response.success(userLikeGroupService.delete(projectId));
|
||||
}
|
||||
|
||||
|
||||
/*@Resource
|
||||
private MyTaskScheduler myTaskScheduler;
|
||||
|
||||
@GetMapping("/dataMigration")
|
||||
public String dataMigration(){
|
||||
myTaskScheduler.projectDataCreate();
|
||||
return "success";
|
||||
}*/
|
||||
|
||||
@GetMapping("/getNextSequence")
|
||||
public Response<Integer> getNextSequence(){
|
||||
return Response.success(projectService.getNextSequence());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user