新增历史记录接口

master
yz 1 year ago
parent 7ed4c011a8
commit ea9b27b9b8

@ -13,6 +13,7 @@ import com.sztzjy.fund_investment.entity.*;
import com.sztzjy.fund_investment.entity.treeSelect.TreeSelect; import com.sztzjy.fund_investment.entity.treeSelect.TreeSelect;
import com.sztzjy.fund_investment.mapper.FoundProjectMapper; import com.sztzjy.fund_investment.mapper.FoundProjectMapper;
import com.sztzjy.fund_investment.mapper.PerformanceScoreMapper; import com.sztzjy.fund_investment.mapper.PerformanceScoreMapper;
import com.sztzjy.fund_investment.mapper.ProFinancialIndexDetailUserMapper;
import com.sztzjy.fund_investment.mapper.ProjectPoolMapper; import com.sztzjy.fund_investment.mapper.ProjectPoolMapper;
import com.sztzjy.fund_investment.service.ISysProjectDueDiligenceService; import com.sztzjy.fund_investment.service.ISysProjectDueDiligenceService;
import com.sztzjy.fund_investment.service.PerformanceScoreService; import com.sztzjy.fund_investment.service.PerformanceScoreService;
@ -28,6 +29,7 @@ import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.awt.*; import java.awt.*;
import java.io.BufferedInputStream; import java.io.BufferedInputStream;
@ -58,6 +60,8 @@ public class ProjectDueDiligenceController {
PerformanceScoreService scoreService; PerformanceScoreService scoreService;
@Autowired @Autowired
PerformanceScoreMapper performanceScoreMapper; PerformanceScoreMapper performanceScoreMapper;
@Autowired
ProFinancialIndexDetailUserMapper proFinancialIndexDetailUserMapper;
//*************公司业务尽职调查 //*************公司业务尽职调查
@ -241,6 +245,25 @@ public class ProjectDueDiligenceController {
return new ResultEntity(HttpStatus.OK, "财务指标查询成功", pageInfo); return new ResultEntity(HttpStatus.OK, "财务指标查询成功", pageInfo);
} }
@GetMapping("selectFinancialIndexDetailListHistory")
@ApiOperation("财务指标历史查询")
@AnonymousAccess
public ResultEntity<List<String>> selectFinancialIndexDetailListHistory(@ApiParam("流程ID") @RequestParam String flowId) {
List<String> ids=new ArrayList<>();
ProFinancialIndexDetailUserExample example = new ProFinancialIndexDetailUserExample();
ProFinancialIndexDetailUserExample.Criteria criteria = example.createCriteria();
criteria.andFlowIdEqualTo(flowId).andLastYearValueNotEqualTo("0");
List<ProFinancialIndexDetailUser> proFinancialIndexDetailUsers = proFinancialIndexDetailUserMapper.selectByExample(example);
if(proFinancialIndexDetailUsers.isEmpty()){
return new ResultEntity(HttpStatus.OK, "财务指标历史查询为空", ids);
}else {
for (int i = 0; i < proFinancialIndexDetailUsers.size(); i++) {
ids.add(proFinancialIndexDetailUsers.get(i).getFinancialIndexId());
}
return new ResultEntity(HttpStatus.OK, "财务指标历史查询成功", ids);
}
}
@PostMapping("insertProFinancialIndexDetailUserList") @PostMapping("insertProFinancialIndexDetailUserList")
@ApiOperation("财务指标保存") @ApiOperation("财务指标保存")
@AnonymousAccess @AnonymousAccess
@ -534,7 +557,6 @@ public class ProjectDueDiligenceController {
document.add(table43); document.add(table43);
HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 16, Font.BOLD); HeaderAndFooterEvent.SetFont(BaseColor.BLACK, "黑体", 16, Font.BOLD);
Paragraph p15 = HeaderAndFooterEvent.AddParagraph("五、经营状况", 0, 1.5f); Paragraph p15 = HeaderAndFooterEvent.AddParagraph("五、经营状况", 0, 1.5f);
document.add(p15); document.add(p15);

Loading…
Cancel
Save