管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-12-23 43863b3aa96e223fa3835245ad0d2c932bf63559
src/main/java/com/lf/server/controller/data/MetaController.java
@@ -23,6 +23,7 @@
import com.lf.server.service.all.BaseQueryService;
import com.lf.server.service.data.DownloadService;
import com.lf.server.service.data.MetaService;
import com.lf.server.service.sys.DownlogService;
import com.lf.server.service.sys.TokenService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
@@ -51,6 +52,9 @@
    @Autowired
    BaseQueryService baseQueryService;
    @Autowired
    DownlogService downlogService;
    @Autowired
    DownloadService downloadService;
@@ -445,9 +449,7 @@
            }
            UserEntity ue = tokenService.getCurrentUser(req);
            de.setDcount(de.getDcount() + 1);
            de.setDownloadUser(ue.getId());
            int rows = downloadService.update(de);
            downlogService.updateInfos(ue, de, req);
            String filePath = downloadService.getDownloadFilePath(de);
            WebHelper.download(filePath, de.getName(), res);