老师端接口及修改表结构
parent
f47ba0998b
commit
82bc5b7226
@ -0,0 +1,135 @@
|
||||
package com.sztzjy.fund_investment.entity.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author xcj
|
||||
* found_project
|
||||
*/
|
||||
public class FoundProjectDto {
|
||||
@ApiModelProperty("流程id")
|
||||
private String flowId;
|
||||
|
||||
@ApiModelProperty("寻找项目结论")
|
||||
private String foundProjectConclusion;
|
||||
|
||||
@ApiModelProperty("业务尽调结论")
|
||||
private String serviceDueDiligence;
|
||||
|
||||
@ApiModelProperty("财务尽调结论")
|
||||
private String financialDueDiligence;
|
||||
|
||||
@ApiModelProperty("项目相对估值结论")
|
||||
private String projectValuationRelative;
|
||||
|
||||
@ApiModelProperty("项目绝对估值结论")
|
||||
private String projectValuationAbsolute;
|
||||
|
||||
|
||||
@ApiModelProperty("寻找项目结论得分")
|
||||
private BigDecimal foundProjectConclusionScore;
|
||||
|
||||
@ApiModelProperty("业务尽调结论得分")
|
||||
private BigDecimal serviceDueDiligenceScore;
|
||||
|
||||
@ApiModelProperty("财务尽调结论得分")
|
||||
private BigDecimal financialDueDiligenceScore;
|
||||
|
||||
@ApiModelProperty("项目相对估值结论得分")
|
||||
private BigDecimal projectValuationRelativeScore;
|
||||
|
||||
@ApiModelProperty("项目绝对估值结论得分")
|
||||
private BigDecimal projectValuationAbsoluteScore;
|
||||
|
||||
|
||||
public String getFlowId() {
|
||||
return flowId;
|
||||
}
|
||||
|
||||
public void setFlowId(String flowId) {
|
||||
this.flowId = flowId;
|
||||
}
|
||||
|
||||
public String getFoundProjectConclusion() {
|
||||
return foundProjectConclusion;
|
||||
}
|
||||
|
||||
public void setFoundProjectConclusion(String foundProjectConclusion) {
|
||||
this.foundProjectConclusion = foundProjectConclusion;
|
||||
}
|
||||
|
||||
public String getServiceDueDiligence() {
|
||||
return serviceDueDiligence;
|
||||
}
|
||||
|
||||
public void setServiceDueDiligence(String serviceDueDiligence) {
|
||||
this.serviceDueDiligence = serviceDueDiligence;
|
||||
}
|
||||
|
||||
public String getFinancialDueDiligence() {
|
||||
return financialDueDiligence;
|
||||
}
|
||||
|
||||
public void setFinancialDueDiligence(String financialDueDiligence) {
|
||||
this.financialDueDiligence = financialDueDiligence;
|
||||
}
|
||||
|
||||
public String getProjectValuationRelative() {
|
||||
return projectValuationRelative;
|
||||
}
|
||||
|
||||
public void setProjectValuationRelative(String projectValuationRelative) {
|
||||
this.projectValuationRelative = projectValuationRelative;
|
||||
}
|
||||
|
||||
public String getProjectValuationAbsolute() {
|
||||
return projectValuationAbsolute;
|
||||
}
|
||||
|
||||
public void setProjectValuationAbsolute(String projectValuationAbsolute) {
|
||||
this.projectValuationAbsolute = projectValuationAbsolute;
|
||||
}
|
||||
|
||||
public BigDecimal getFoundProjectConclusionScore() {
|
||||
return foundProjectConclusionScore;
|
||||
}
|
||||
|
||||
public void setFoundProjectConclusionScore(BigDecimal foundProjectConclusionScore) {
|
||||
this.foundProjectConclusionScore = foundProjectConclusionScore;
|
||||
}
|
||||
|
||||
public BigDecimal getServiceDueDiligenceScore() {
|
||||
return serviceDueDiligenceScore;
|
||||
}
|
||||
|
||||
public void setServiceDueDiligenceScore(BigDecimal serviceDueDiligenceScore) {
|
||||
this.serviceDueDiligenceScore = serviceDueDiligenceScore;
|
||||
}
|
||||
|
||||
public BigDecimal getFinancialDueDiligenceScore() {
|
||||
return financialDueDiligenceScore;
|
||||
}
|
||||
|
||||
public void setFinancialDueDiligenceScore(BigDecimal financialDueDiligenceScore) {
|
||||
this.financialDueDiligenceScore = financialDueDiligenceScore;
|
||||
}
|
||||
|
||||
public BigDecimal getProjectValuationRelativeScore() {
|
||||
return projectValuationRelativeScore;
|
||||
}
|
||||
|
||||
public void setProjectValuationRelativeScore(BigDecimal projectValuationRelativeScore) {
|
||||
this.projectValuationRelativeScore = projectValuationRelativeScore;
|
||||
}
|
||||
|
||||
public BigDecimal getProjectValuationAbsoluteScore() {
|
||||
return projectValuationAbsoluteScore;
|
||||
}
|
||||
|
||||
public void setProjectValuationAbsoluteScore(BigDecimal projectValuationAbsoluteScore) {
|
||||
this.projectValuationAbsoluteScore = projectValuationAbsoluteScore;
|
||||
}
|
||||
}
|
@ -0,0 +1,322 @@
|
||||
package com.sztzjy.fund_investment.entity.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author xcj
|
||||
* performance_score
|
||||
*/
|
||||
public class PerformanceScoreDto {
|
||||
@ApiModelProperty("表ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("流程ID")
|
||||
private String flowId;
|
||||
|
||||
@ApiModelProperty("实务认知学习进度")
|
||||
private String practicalCognitionSchedule;
|
||||
|
||||
@ApiModelProperty("知识测评进度")
|
||||
private String knowledgeAssessmentSchedule;
|
||||
|
||||
@ApiModelProperty("基金募资进度")
|
||||
private String fundraisingSchedule;
|
||||
|
||||
@ApiModelProperty("寻找项目进度")
|
||||
private String projectSearchSchedule;
|
||||
|
||||
@ApiModelProperty("项目尽调进度")
|
||||
private String projectDueDiligenceSchedule;
|
||||
|
||||
@ApiModelProperty("项目估值进度")
|
||||
private String projectValuationSchedule;
|
||||
|
||||
@ApiModelProperty("签约投资进度")
|
||||
private String investmentSigningSchedule;
|
||||
|
||||
@ApiModelProperty("IPO申请进度")
|
||||
private String ipoSchedule;
|
||||
|
||||
@ApiModelProperty("询价发行进度")
|
||||
private String pricingIssuanceSchedule;
|
||||
|
||||
@ApiModelProperty("收益管理进度")
|
||||
private String profitManagementSchedule;
|
||||
|
||||
@ApiModelProperty("收益分配进度")
|
||||
private String profitDistributionSchedule;
|
||||
|
||||
@ApiModelProperty("投资报告进度")
|
||||
private String investmentReportSchedule;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("实务认知完成时间")
|
||||
private Date practicalCognitionTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("知识测评完成时间")
|
||||
private Date knowledgeAssessmentTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("基金募资完成时间")
|
||||
private Date fundraisingTime;
|
||||
|
||||
@ApiModelProperty("寻找项目完成时间")
|
||||
private Date projectSearchTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("项目尽调完成时间")
|
||||
private Date projectDueDiligenceTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("项目估值完成时间")
|
||||
private Date projectValuationTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("签约投资完成时间")
|
||||
private Date investmentSigningTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("ipo页面完成时间")
|
||||
private Date ipoTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("询价发行完成时间")
|
||||
private Date pricingIssuanceTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("收益管理完成时间")
|
||||
private Date profitManagementTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("收益分配完成时间")
|
||||
private Date profitDistributionTime;
|
||||
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
||||
@ApiModelProperty("投资报告页面完成时间")
|
||||
private Date investmentReportTime;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getFlowId() {
|
||||
return flowId;
|
||||
}
|
||||
|
||||
public void setFlowId(String flowId) {
|
||||
this.flowId = flowId;
|
||||
}
|
||||
|
||||
public String getPracticalCognitionSchedule() {
|
||||
return practicalCognitionSchedule;
|
||||
}
|
||||
|
||||
public void setPracticalCognitionSchedule(String practicalCognitionSchedule) {
|
||||
this.practicalCognitionSchedule = practicalCognitionSchedule;
|
||||
}
|
||||
|
||||
public String getKnowledgeAssessmentSchedule() {
|
||||
return knowledgeAssessmentSchedule;
|
||||
}
|
||||
|
||||
public void setKnowledgeAssessmentSchedule(String knowledgeAssessmentSchedule) {
|
||||
this.knowledgeAssessmentSchedule = knowledgeAssessmentSchedule;
|
||||
}
|
||||
|
||||
public String getFundraisingSchedule() {
|
||||
return fundraisingSchedule;
|
||||
}
|
||||
|
||||
public void setFundraisingSchedule(String fundraisingSchedule) {
|
||||
this.fundraisingSchedule = fundraisingSchedule;
|
||||
}
|
||||
|
||||
public String getProjectSearchSchedule() {
|
||||
return projectSearchSchedule;
|
||||
}
|
||||
|
||||
public void setProjectSearchSchedule(String projectSearchSchedule) {
|
||||
this.projectSearchSchedule = projectSearchSchedule;
|
||||
}
|
||||
|
||||
public String getProjectDueDiligenceSchedule() {
|
||||
return projectDueDiligenceSchedule;
|
||||
}
|
||||
|
||||
public void setProjectDueDiligenceSchedule(String projectDueDiligenceSchedule) {
|
||||
this.projectDueDiligenceSchedule = projectDueDiligenceSchedule;
|
||||
}
|
||||
|
||||
public String getProjectValuationSchedule() {
|
||||
return projectValuationSchedule;
|
||||
}
|
||||
|
||||
public void setProjectValuationSchedule(String projectValuationSchedule) {
|
||||
this.projectValuationSchedule = projectValuationSchedule;
|
||||
}
|
||||
|
||||
public String getInvestmentSigningSchedule() {
|
||||
return investmentSigningSchedule;
|
||||
}
|
||||
|
||||
public void setInvestmentSigningSchedule(String investmentSigningSchedule) {
|
||||
this.investmentSigningSchedule = investmentSigningSchedule;
|
||||
}
|
||||
|
||||
public String getIpoSchedule() {
|
||||
return ipoSchedule;
|
||||
}
|
||||
|
||||
public void setIpoSchedule(String ipoSchedule) {
|
||||
this.ipoSchedule = ipoSchedule;
|
||||
}
|
||||
|
||||
public String getPricingIssuanceSchedule() {
|
||||
return pricingIssuanceSchedule;
|
||||
}
|
||||
|
||||
public void setPricingIssuanceSchedule(String pricingIssuanceSchedule) {
|
||||
this.pricingIssuanceSchedule = pricingIssuanceSchedule;
|
||||
}
|
||||
|
||||
public String getProfitManagementSchedule() {
|
||||
return profitManagementSchedule;
|
||||
}
|
||||
|
||||
public void setProfitManagementSchedule(String profitManagementSchedule) {
|
||||
this.profitManagementSchedule = profitManagementSchedule;
|
||||
}
|
||||
|
||||
public String getProfitDistributionSchedule() {
|
||||
return profitDistributionSchedule;
|
||||
}
|
||||
|
||||
public void setProfitDistributionSchedule(String profitDistributionSchedule) {
|
||||
this.profitDistributionSchedule = profitDistributionSchedule;
|
||||
}
|
||||
|
||||
public String getInvestmentReportSchedule() {
|
||||
return investmentReportSchedule;
|
||||
}
|
||||
|
||||
public void setInvestmentReportSchedule(String investmentReportSchedule) {
|
||||
this.investmentReportSchedule = investmentReportSchedule;
|
||||
}
|
||||
|
||||
public Date getPracticalCognitionTime() {
|
||||
return practicalCognitionTime;
|
||||
}
|
||||
|
||||
public void setPracticalCognitionTime(Date practicalCognitionTime) {
|
||||
this.practicalCognitionTime = practicalCognitionTime;
|
||||
}
|
||||
|
||||
public Date getKnowledgeAssessmentTime() {
|
||||
return knowledgeAssessmentTime;
|
||||
}
|
||||
|
||||
public void setKnowledgeAssessmentTime(Date knowledgeAssessmentTime) {
|
||||
this.knowledgeAssessmentTime = knowledgeAssessmentTime;
|
||||
}
|
||||
|
||||
public Date getFundraisingTime() {
|
||||
return fundraisingTime;
|
||||
}
|
||||
|
||||
public void setFundraisingTime(Date fundraisingTime) {
|
||||
this.fundraisingTime = fundraisingTime;
|
||||
}
|
||||
|
||||
public Date getProjectSearchTime() {
|
||||
return projectSearchTime;
|
||||
}
|
||||
|
||||
public void setProjectSearchTime(Date projectSearchTime) {
|
||||
this.projectSearchTime = projectSearchTime;
|
||||
}
|
||||
|
||||
public Date getProjectDueDiligenceTime() {
|
||||
return projectDueDiligenceTime;
|
||||
}
|
||||
|
||||
public void setProjectDueDiligenceTime(Date projectDueDiligenceTime) {
|
||||
this.projectDueDiligenceTime = projectDueDiligenceTime;
|
||||
}
|
||||
|
||||
public Date getProjectValuationTime() {
|
||||
return projectValuationTime;
|
||||
}
|
||||
|
||||
public void setProjectValuationTime(Date projectValuationTime) {
|
||||
this.projectValuationTime = projectValuationTime;
|
||||
}
|
||||
|
||||
public Date getInvestmentSigningTime() {
|
||||
return investmentSigningTime;
|
||||
}
|
||||
|
||||
public void setInvestmentSigningTime(Date investmentSigningTime) {
|
||||
this.investmentSigningTime = investmentSigningTime;
|
||||
}
|
||||
|
||||
public Date getIpoTime() {
|
||||
return ipoTime;
|
||||
}
|
||||
|
||||
public void setIpoTime(Date ipoTime) {
|
||||
this.ipoTime = ipoTime;
|
||||
}
|
||||
|
||||
public Date getPricingIssuanceTime() {
|
||||
return pricingIssuanceTime;
|
||||
}
|
||||
|
||||
public void setPricingIssuanceTime(Date pricingIssuanceTime) {
|
||||
this.pricingIssuanceTime = pricingIssuanceTime;
|
||||
}
|
||||
|
||||
public Date getProfitManagementTime() {
|
||||
return profitManagementTime;
|
||||
}
|
||||
|
||||
public void setProfitManagementTime(Date profitManagementTime) {
|
||||
this.profitManagementTime = profitManagementTime;
|
||||
}
|
||||
|
||||
public Date getProfitDistributionTime() {
|
||||
return profitDistributionTime;
|
||||
}
|
||||
|
||||
public void setProfitDistributionTime(Date profitDistributionTime) {
|
||||
this.profitDistributionTime = profitDistributionTime;
|
||||
}
|
||||
|
||||
public Date getInvestmentReportTime() {
|
||||
return investmentReportTime;
|
||||
}
|
||||
|
||||
public void setInvestmentReportTime(Date investmentReportTime) {
|
||||
this.investmentReportTime = investmentReportTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,169 @@
|
||||
package com.sztzjy.fund_investment.entity.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author xcj
|
||||
* performance_score
|
||||
*/
|
||||
public class PerformanceTrainingScoreDto {
|
||||
|
||||
@ApiModelProperty("流程ID")
|
||||
private String flowId;
|
||||
|
||||
@ApiModelProperty("实务认知学习分数")
|
||||
private BigDecimal practicalCognitionScore;
|
||||
|
||||
@ApiModelProperty("知识测评分数")
|
||||
private BigDecimal knowledgeAssessmentScore;
|
||||
|
||||
@ApiModelProperty("基金募资分数")
|
||||
private BigDecimal fundraisingScore;
|
||||
|
||||
@ApiModelProperty("寻找项目分数")
|
||||
private BigDecimal projectSearchScore;
|
||||
|
||||
@ApiModelProperty("项目尽调分数")
|
||||
private BigDecimal projectDueDiligenceScore;
|
||||
|
||||
@ApiModelProperty("项目估值分数")
|
||||
private BigDecimal projectValuationScore;
|
||||
|
||||
@ApiModelProperty("签约投资分数")
|
||||
private BigDecimal investmentSigningScore;
|
||||
|
||||
@ApiModelProperty("IPO申请分数")
|
||||
private BigDecimal ipoScore;
|
||||
|
||||
@ApiModelProperty("询价发行分数")
|
||||
private BigDecimal pricingIssuanceScore;
|
||||
|
||||
@ApiModelProperty("收益管理分数")
|
||||
private BigDecimal profitManagementScore;
|
||||
|
||||
@ApiModelProperty("收益分配分数")
|
||||
private BigDecimal profitDistributionScore;
|
||||
|
||||
@ApiModelProperty("投资报告分数")
|
||||
private BigDecimal investmentReportScore;
|
||||
|
||||
@ApiModelProperty("总成绩")
|
||||
private BigDecimal totalScore;
|
||||
|
||||
public BigDecimal getTotalScore() {
|
||||
return totalScore;
|
||||
}
|
||||
|
||||
public void setTotalScore(BigDecimal totalScore) {
|
||||
this.totalScore = totalScore;
|
||||
}
|
||||
|
||||
public String getFlowId() {
|
||||
return flowId;
|
||||
}
|
||||
|
||||
public void setFlowId(String flowId) {
|
||||
this.flowId = flowId;
|
||||
}
|
||||
|
||||
public BigDecimal getPracticalCognitionScore() {
|
||||
return practicalCognitionScore;
|
||||
}
|
||||
|
||||
public void setPracticalCognitionScore(BigDecimal practicalCognitionScore) {
|
||||
this.practicalCognitionScore = practicalCognitionScore;
|
||||
}
|
||||
|
||||
public BigDecimal getKnowledgeAssessmentScore() {
|
||||
return knowledgeAssessmentScore;
|
||||
}
|
||||
|
||||
public void setKnowledgeAssessmentScore(BigDecimal knowledgeAssessmentScore) {
|
||||
this.knowledgeAssessmentScore = knowledgeAssessmentScore;
|
||||
}
|
||||
|
||||
public BigDecimal getFundraisingScore() {
|
||||
return fundraisingScore;
|
||||
}
|
||||
|
||||
public void setFundraisingScore(BigDecimal fundraisingScore) {
|
||||
this.fundraisingScore = fundraisingScore;
|
||||
}
|
||||
|
||||
public BigDecimal getProjectSearchScore() {
|
||||
return projectSearchScore;
|
||||
}
|
||||
|
||||
public void setProjectSearchScore(BigDecimal projectSearchScore) {
|
||||
this.projectSearchScore = projectSearchScore;
|
||||
}
|
||||
|
||||
public BigDecimal getProjectDueDiligenceScore() {
|
||||
return projectDueDiligenceScore;
|
||||
}
|
||||
|
||||
public void setProjectDueDiligenceScore(BigDecimal projectDueDiligenceScore) {
|
||||
this.projectDueDiligenceScore = projectDueDiligenceScore;
|
||||
}
|
||||
|
||||
public BigDecimal getProjectValuationScore() {
|
||||
return projectValuationScore;
|
||||
}
|
||||
|
||||
public void setProjectValuationScore(BigDecimal projectValuationScore) {
|
||||
this.projectValuationScore = projectValuationScore;
|
||||
}
|
||||
|
||||
public BigDecimal getInvestmentSigningScore() {
|
||||
return investmentSigningScore;
|
||||
}
|
||||
|
||||
public void setInvestmentSigningScore(BigDecimal investmentSigningScore) {
|
||||
this.investmentSigningScore = investmentSigningScore;
|
||||
}
|
||||
|
||||
public BigDecimal getIpoScore() {
|
||||
return ipoScore;
|
||||
}
|
||||
|
||||
public void setIpoScore(BigDecimal ipoScore) {
|
||||
this.ipoScore = ipoScore;
|
||||
}
|
||||
|
||||
public BigDecimal getPricingIssuanceScore() {
|
||||
return pricingIssuanceScore;
|
||||
}
|
||||
|
||||
public void setPricingIssuanceScore(BigDecimal pricingIssuanceScore) {
|
||||
this.pricingIssuanceScore = pricingIssuanceScore;
|
||||
}
|
||||
|
||||
public BigDecimal getProfitManagementScore() {
|
||||
return profitManagementScore;
|
||||
}
|
||||
|
||||
public void setProfitManagementScore(BigDecimal profitManagementScore) {
|
||||
this.profitManagementScore = profitManagementScore;
|
||||
}
|
||||
|
||||
public BigDecimal getProfitDistributionScore() {
|
||||
return profitDistributionScore;
|
||||
}
|
||||
|
||||
public void setProfitDistributionScore(BigDecimal profitDistributionScore) {
|
||||
this.profitDistributionScore = profitDistributionScore;
|
||||
}
|
||||
|
||||
public BigDecimal getInvestmentReportScore() {
|
||||
return investmentReportScore;
|
||||
}
|
||||
|
||||
public void setInvestmentReportScore(BigDecimal investmentReportScore) {
|
||||
this.investmentReportScore = investmentReportScore;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package com.sztzjy.fund_investment.entity.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Author xcj
|
||||
* @Date 2023/12/1
|
||||
*/
|
||||
@Data
|
||||
public class QuestionAnswerDto {
|
||||
@ApiModelProperty("表ID")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("流程ID")
|
||||
private String flowId;
|
||||
|
||||
@ApiModelProperty("学校ID")
|
||||
private String schoolid;
|
||||
|
||||
@ApiModelProperty("提问时间")
|
||||
private Date questionTime;
|
||||
|
||||
@ApiModelProperty("提问内容")
|
||||
private String questionContent;
|
||||
|
||||
@ApiModelProperty("回复内容")
|
||||
private String replyContent;
|
||||
|
||||
@ApiModelProperty("姓名")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty("学号")
|
||||
private String studentId;
|
||||
|
||||
@ApiModelProperty("班级名称")
|
||||
private String className;
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
package com.sztzjy.fund_investment.service.serviceImpl.tea;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.sztzjy.fund_investment.entity.*;
|
||||
import com.sztzjy.fund_investment.entity.dto.QuestionAnswerDto;
|
||||
import com.sztzjy.fund_investment.mapper.FlowMapper;
|
||||
import com.sztzjy.fund_investment.mapper.QuestionAnswerMapper;
|
||||
import com.sztzjy.fund_investment.mapper.TopicsMapper;
|
||||
import com.sztzjy.fund_investment.mapper.UserTableMapper;
|
||||
import com.sztzjy.fund_investment.service.tea.TeaTopicManageService;
|
||||
import com.sztzjy.fund_investment.util.PageUtil;
|
||||
import com.sztzjy.fund_investment.util.ResultEntity;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author xcj
|
||||
* @Date 2023/12/1
|
||||
*/
|
||||
@Service
|
||||
public class TeaTopicManageServiceImpl implements TeaTopicManageService {
|
||||
|
||||
@Autowired
|
||||
private TopicsMapper topicsMapper;
|
||||
@Autowired
|
||||
private QuestionAnswerMapper questionAnswerMapper;
|
||||
@Autowired
|
||||
private UserTableMapper userTableMapper;
|
||||
@Autowired
|
||||
private FlowMapper flowMapper;
|
||||
|
||||
|
||||
@Override
|
||||
public ResultEntity<String> insertTopics(TopicsWithBLOBs topics) {
|
||||
if (StringUtils.isNotBlank(topics.getTopicContent())) {
|
||||
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "题干不能为空!");
|
||||
}
|
||||
if (StringUtils.isNotBlank(topics.getChoicesa()) || StringUtils.isNotBlank(topics.getChoicesb())) {
|
||||
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "选项不能为空!");
|
||||
}
|
||||
if (StringUtils.isNotBlank(topics.getTopicType())) {
|
||||
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "题型不能为空!");
|
||||
}
|
||||
if (StringUtils.isNotBlank(topics.getAnswer())) {
|
||||
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "答案不能为空!");
|
||||
}
|
||||
if (topics.getScore() == null || topics.getScore() == 0) {
|
||||
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "分值不能为空!");
|
||||
}
|
||||
topicsMapper.insert(topics);
|
||||
return new ResultEntity<>(HttpStatus.OK, "新增成功!");
|
||||
}
|
||||
|
||||
|
||||
/* 试题页面模糊查询/展示
|
||||
* @author xcj
|
||||
* @Date 2023/12/1
|
||||
*/
|
||||
@Override
|
||||
public PageInfo<TopicsWithBLOBs> getTopicsBySchoolId(Integer index, Integer size, String schoolId, String module, String topicContent) {
|
||||
PageHelper.startPage(index, size);
|
||||
TopicsExample topicsExample = new TopicsExample();
|
||||
TopicsExample.Criteria criteria = topicsExample.createCriteria();
|
||||
criteria.andSchoolIdEqualTo(schoolId).andModuleEqualTo(module);
|
||||
if (!("").equals(topicContent) && topicContent != null) {
|
||||
topicContent = "%" + topicContent + "%";
|
||||
criteria.andTopicIdEqualTo(topicContent);
|
||||
}
|
||||
List<TopicsWithBLOBs> topicsWithBLOBs = topicsMapper.selectByExampleWithBLOBs(topicsExample);
|
||||
return new PageInfo<>(topicsWithBLOBs);
|
||||
}
|
||||
|
||||
|
||||
/** 互动答疑查询展示
|
||||
* @author xcj
|
||||
* @Date 2023/12/1
|
||||
*/
|
||||
@Override
|
||||
public PageInfo<QuestionAnswerDto> getQuestionAnswer(Integer index, Integer size, String schoolId, String className, String keyWord) {
|
||||
QuestionAnswerExample questionAnswerExample = new QuestionAnswerExample();
|
||||
questionAnswerExample.createCriteria().andSchoolidEqualTo(schoolId);
|
||||
List<QuestionAnswer> questionAnswers = questionAnswerMapper.selectByExample(questionAnswerExample);
|
||||
UserTableExample userTableExample = new UserTableExample();
|
||||
UserTableExample.Criteria criteria = userTableExample.createCriteria();
|
||||
UserTableExample.Criteria or = userTableExample.createCriteria();
|
||||
criteria.andSchoolIdEqualTo(schoolId);
|
||||
if (StringUtils.isNotBlank(className)){
|
||||
criteria.andClassNameEqualTo(className);
|
||||
}
|
||||
if (StringUtils.isNotBlank(keyWord)){
|
||||
criteria.andStudentIdEqualTo(keyWord);
|
||||
or.andNameEqualTo(keyWord);
|
||||
}
|
||||
userTableExample.or(or);
|
||||
List<UserTable> userTables = userTableMapper.selectByExample(userTableExample);
|
||||
List<QuestionAnswerDto> list = new ArrayList<>();
|
||||
|
||||
for (UserTable userTable : userTables) {
|
||||
Flow flow = flowMapper.selectByPrimaryKey(userTable.getUserid());
|
||||
String flowId = flow.getFlowId();
|
||||
for (QuestionAnswer questionAnswer : questionAnswers) {
|
||||
if (questionAnswer.getFlowId().equals(flowId)) {
|
||||
QuestionAnswerDto questionAnswerDto = new QuestionAnswerDto();
|
||||
BeanUtils.copyProperties(userTable, questionAnswerDto);
|
||||
BeanUtils.copyProperties(questionAnswer, questionAnswerDto);
|
||||
list.add(questionAnswerDto);
|
||||
}
|
||||
}
|
||||
}
|
||||
PageInfo pageInfo = PageUtil.pageHelper(list, index, size);
|
||||
return pageInfo;
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.sztzjy.fund_investment.service.tea;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.sztzjy.fund_investment.entity.TopicsWithBLOBs;
|
||||
import com.sztzjy.fund_investment.entity.dto.QuestionAnswerDto;
|
||||
import com.sztzjy.fund_investment.util.ResultEntity;
|
||||
|
||||
/**
|
||||
* @Author xcj
|
||||
* @Date 2023/12/1
|
||||
*/
|
||||
public interface TeaTopicManageService {
|
||||
ResultEntity<String> insertTopics(TopicsWithBLOBs topics);
|
||||
|
||||
PageInfo<TopicsWithBLOBs> getTopicsBySchoolId(Integer index, Integer size,String schoolId, String module,String topicContent);
|
||||
|
||||
PageInfo<QuestionAnswerDto> getQuestionAnswer(Integer index, Integer size,String schoolId, String className, String keyWord);
|
||||
|
||||
}
|
Loading…
Reference in New Issue