|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.sztzjy.fund_investment.service.serviceImpl;
|
|
|
|
|
|
|
|
|
|
import com.sztzjy.fund_investment.config.Constant;
|
|
|
|
|
import com.sztzjy.fund_investment.entity.TrainingReport;
|
|
|
|
|
import com.sztzjy.fund_investment.entity.TrainingReportExample;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.TrainingReportMapper;
|
|
|
|
@ -7,7 +8,6 @@ import com.sztzjy.fund_investment.service.InvestmentReportService;
|
|
|
|
|
import com.sztzjy.fund_investment.util.ResultEntity;
|
|
|
|
|
import com.sztzjy.fund_investment.util.file.IFileUtil;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.apache.xmlbeans.impl.xb.xsdschema.Public;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
@ -52,7 +52,7 @@ public class InvestmentReportServiceImpl implements InvestmentReportService {
|
|
|
|
|
trainingReport.setUrl(filePath);
|
|
|
|
|
trainingReport.setReportName(fileName);
|
|
|
|
|
trainingReport.setUploadtime(new Date());
|
|
|
|
|
trainingReport.setStep("投资报告");
|
|
|
|
|
trainingReport.setStep(Constant.TZBG);
|
|
|
|
|
trainingReportMapper.updateByPrimaryKey(trainingReport);
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, "报告上传成功!");
|
|
|
|
|
}
|
|
|
|
@ -64,7 +64,7 @@ public class InvestmentReportServiceImpl implements InvestmentReportService {
|
|
|
|
|
trainingReport.setUrl(filePath);
|
|
|
|
|
trainingReport.setReportName(fileName);
|
|
|
|
|
trainingReport.setUploadtime(new Date());
|
|
|
|
|
trainingReport.setStep("投资报告");
|
|
|
|
|
trainingReport.setStep(Constant.TZBG);
|
|
|
|
|
trainingReportMapper.insert(trainingReport);
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, "报告上传成功!");
|
|
|
|
|
}
|
|
|
|
@ -75,7 +75,7 @@ public class InvestmentReportServiceImpl implements InvestmentReportService {
|
|
|
|
|
public List<TrainingReport> getTrainingReports(String flowId) {
|
|
|
|
|
TrainingReportExample trainingReportExample = new TrainingReportExample();
|
|
|
|
|
trainingReportExample.createCriteria().andFlowIdEqualTo(flowId);
|
|
|
|
|
return trainingReportMapper.selectByExample(trainingReportExample);
|
|
|
|
|
return trainingReportMapper.selectByExampleWithBLOBs(trainingReportExample);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|