|
@@ -4,6 +4,10 @@ import com.rongwei.bsentity.domain.ZhcxProjectManageDo;
|
|
|
import com.rongwei.bscommon.sys.dao.ZhcxProjectManageDao;
|
|
|
import com.rongwei.bscommon.sys.service.ZhcxProjectManageService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.rongwei.rwcommoncomponent.file.dto.NewFileDto;
|
|
|
+import com.rongwei.rwcommoncomponent.file.service.SysFileItemService;
|
|
|
+import com.rongwei.rwcommonentity.commonservers.domain.SysFileItemDo;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
@@ -17,4 +21,24 @@ import org.springframework.stereotype.Service;
|
|
|
@Service
|
|
|
public class ZhcxProjectManageServiceImpl extends ServiceImpl<ZhcxProjectManageDao, ZhcxProjectManageDo> implements ZhcxProjectManageService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SysFileItemService fileItemService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 生成汇总文件
|
|
|
+ *
|
|
|
+ * @param projectId
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public SysFileItemDo genSummaryFiles(String projectId) {
|
|
|
+
|
|
|
+ ZhcxProjectManageDo manageDo = getById(projectId);
|
|
|
+
|
|
|
+ NewFileDto newFileDto = NewFileDto.builder()
|
|
|
+ .fileName(manageDo.getProjectCode().concat(manageDo.getProjectEname()))
|
|
|
+ .suffix("xlsx")
|
|
|
+ .build();
|
|
|
+ SysFileItemDo fileItemDo = fileItemService.newBlankFile(newFileDto);
|
|
|
+ return fileItemDo;
|
|
|
+ }
|
|
|
}
|