|
|
@@ -2,8 +2,11 @@ package com.fdkankan.scene.controller;
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
import cn.hutool.core.date.TimeInterval;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.fdkankan.fyun.face.FYunFileServiceInterface;
|
|
|
import com.fdkankan.rabbitmq.util.RabbitMqProducer;
|
|
|
+import com.fdkankan.scene.entity.User;
|
|
|
+import com.fdkankan.scene.service.IUserService;
|
|
|
import com.fdkankan.web.response.ResultData;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -11,6 +14,8 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* TODO
|
|
|
@@ -28,16 +33,13 @@ public class TestController {
|
|
|
private RabbitMqProducer rabbitMqProducer;
|
|
|
@Autowired
|
|
|
private FYunFileServiceInterface fYunFileService;
|
|
|
+ @Autowired
|
|
|
+ private IUserService userService;
|
|
|
+
|
|
|
|
|
|
@GetMapping("/test")
|
|
|
public ResultData<Void> test(){
|
|
|
- TimeInterval timer = DateUtil.timer();
|
|
|
- fYunFileService.deleteFolder("test001/hotspot");
|
|
|
- long l = timer.intervalRestart();
|
|
|
- log.info("删除文件花费时间:{}", l);
|
|
|
- fYunFileService.copyFileInBucketParallel("test/hotspot", "test001/hotspot");
|
|
|
- long l2 = timer.intervalRestart();
|
|
|
- log.info("删除文件花费时间:{}", l2);
|
|
|
+ List<User> list = userService.list(new LambdaQueryWrapper<User>().eq(User::getUserName, null));
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
|