|
@ -12,9 +12,7 @@ import com.epmet.dto.form.ImportTaskCommonFormDTO; |
|
|
import com.epmet.dto.result.ImportTaskCommonResultDTO; |
|
|
import com.epmet.dto.result.ImportTaskCommonResultDTO; |
|
|
import com.epmet.service.ImportTaskService; |
|
|
import com.epmet.service.ImportTaskService; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
|
|
|
|
@RestController |
|
|
@RestController |
|
|
@RequestMapping("import-task") |
|
|
@RequestMapping("import-task") |
|
@ -70,4 +68,15 @@ public class ImportTaskController { |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 检查是否有正在执行的任务 |
|
|
|
|
|
* @param bizType 业务类型 |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@GetMapping("processing-check") |
|
|
|
|
|
public Result processingTaskCheck(@RequestParam("biz_type") String bizType) { |
|
|
|
|
|
Boolean r = importTaskService.processingTaskCheck(bizType); |
|
|
|
|
|
return new Result().ok(r); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|