新增退出时机表,完成投资报告页面接口
parent
82bc5b7226
commit
6b6b5c23ec
@ -0,0 +1,100 @@
|
||||
package com.sztzjy.fund_investment.controller;
|
||||
|
||||
import com.sztzjy.fund_investment.annotation.AnonymousAccess;
|
||||
import com.sztzjy.fund_investment.entity.ExitTime;
|
||||
import com.sztzjy.fund_investment.entity.ProfitManagement;
|
||||
import com.sztzjy.fund_investment.entity.ProfitManagementExample;
|
||||
import com.sztzjy.fund_investment.entity.TrainingReport;
|
||||
import com.sztzjy.fund_investment.mapper.ExitTimeMapper;
|
||||
import com.sztzjy.fund_investment.mapper.ProfitManagementMapper;
|
||||
import com.sztzjy.fund_investment.service.InvestmentReportService;
|
||||
import com.sztzjy.fund_investment.util.ResultEntity;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.util.*;
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/stu/report")
|
||||
@Api(tags = "学生端--投资报告")
|
||||
public class InvestmentReportController {
|
||||
@Autowired
|
||||
private InvestmentReportService investmentReportService;
|
||||
@Autowired
|
||||
private ExitTimeMapper exitTimeMapper;
|
||||
@Autowired
|
||||
ProfitManagementMapper profitManagementMapper;
|
||||
|
||||
@AnonymousAccess
|
||||
@GetMapping("getProjectPoolList")
|
||||
@ApiOperation("股权投资收益率")
|
||||
public ResultEntity<Map<Integer, BigDecimal>> getFundraising(@RequestParam String flowId) {
|
||||
ProfitManagementExample profitManagementExample = new ProfitManagementExample();
|
||||
profitManagementExample.createCriteria().andFlowIdEqualTo(flowId);
|
||||
profitManagementExample.setOrderByClause("market_time ASC");
|
||||
List<ProfitManagement> profitManagementList = profitManagementMapper.selectByExample(profitManagementExample);
|
||||
Map<Integer, BigDecimal> map = new LinkedHashMap<>();
|
||||
for (ProfitManagement profitManagement : profitManagementList) {
|
||||
if (profitManagement.getFundEarnings() != null && profitManagement.getFundEarnings().compareTo(BigDecimal.ZERO) != 0
|
||||
&& profitManagement.getInvestmentAmount() != null && profitManagement.getInvestmentAmount().compareTo(BigDecimal.ZERO) != 0) {
|
||||
BigDecimal fundEarnings = profitManagement.getFundEarnings(); // 基金收益
|
||||
BigDecimal investmentAmount = profitManagement.getInvestmentAmount(); // 投资金额
|
||||
|
||||
// 基金收益/投资金额=投资收益率
|
||||
BigDecimal bigDecimal = fundEarnings.divide(investmentAmount,6,RoundingMode.HALF_UP);
|
||||
map.put(profitManagement.getMarketTime(), bigDecimal);
|
||||
}
|
||||
}
|
||||
return new ResultEntity<Map<Integer, BigDecimal>>(map);
|
||||
}
|
||||
|
||||
|
||||
@AnonymousAccess
|
||||
@GetMapping("getExitData")
|
||||
@ApiOperation("左侧退出时数据")
|
||||
public ResultEntity<ExitTime> getExitData(@RequestParam String flowId) {
|
||||
return new ResultEntity<ExitTime>(exitTimeMapper.selectByPrimaryKey(flowId));
|
||||
}
|
||||
|
||||
|
||||
@AnonymousAccess
|
||||
@PostMapping("commitExperience")
|
||||
@ApiOperation("提交心得")
|
||||
public ResultEntity<String> commitExperience(@ApiParam("传三个ID、experience、uploadTime") @RequestBody TrainingReport trainingReport) {
|
||||
return investmentReportService.commitExperience(trainingReport);
|
||||
}
|
||||
|
||||
@AnonymousAccess
|
||||
@PostMapping("getExperience")
|
||||
@ApiOperation("心得回显")
|
||||
public ResultEntity<String> getExperience(@RequestBody String flowId) {
|
||||
List<TrainingReport> trainingReports = investmentReportService.getTrainingReports(flowId);
|
||||
if (trainingReports.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
TrainingReport trainingReport = trainingReports.get(0);
|
||||
if (StringUtils.isBlank(trainingReport.getExperience())) {
|
||||
return null;
|
||||
}
|
||||
return new ResultEntity<>(trainingReport.getExperience());
|
||||
}
|
||||
|
||||
@AnonymousAccess
|
||||
@PostMapping("uploadReport")
|
||||
@ApiOperation("上传报告")
|
||||
public ResultEntity<String> uploadReport(@RequestParam("file") @RequestPart(name = "file") MultipartFile file,
|
||||
@ApiParam("文件名称") @RequestParam String fileName,
|
||||
@RequestParam String flowId,
|
||||
@RequestParam String schoolId) {
|
||||
return investmentReportService.uploadReport(file, fileName, flowId, schoolId);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,131 @@
|
||||
package com.sztzjy.fund_investment.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
*
|
||||
* @author xcj
|
||||
* exit_time
|
||||
*/
|
||||
public class ExitTime {
|
||||
private String flowId;
|
||||
|
||||
@ApiModelProperty("投资项目")
|
||||
private String porjectName;
|
||||
|
||||
@ApiModelProperty("投资金额")
|
||||
private BigDecimal investmentAmount;
|
||||
|
||||
@ApiModelProperty("持股比例")
|
||||
private BigDecimal shareRatio;
|
||||
|
||||
@ApiModelProperty("总股本")
|
||||
private BigDecimal totalEquity;
|
||||
|
||||
@ApiModelProperty("持股数量")
|
||||
private BigDecimal shareCount;
|
||||
|
||||
@ApiModelProperty("退出时市值")
|
||||
private BigDecimal exitMarketValue;
|
||||
|
||||
@ApiModelProperty("退出时收益率")
|
||||
private BigDecimal exitYield;
|
||||
|
||||
@ApiModelProperty("退出时基金收益")
|
||||
private BigDecimal exitFundEarnings;
|
||||
|
||||
@ApiModelProperty("退出时机")
|
||||
private String exitTiming;
|
||||
|
||||
@ApiModelProperty("退出股价")
|
||||
private BigDecimal exitStockPrice;
|
||||
|
||||
public String getFlowId() {
|
||||
return flowId;
|
||||
}
|
||||
|
||||
public void setFlowId(String flowId) {
|
||||
this.flowId = flowId == null ? null : flowId.trim();
|
||||
}
|
||||
|
||||
public String getPorjectName() {
|
||||
return porjectName;
|
||||
}
|
||||
|
||||
public void setPorjectName(String porjectName) {
|
||||
this.porjectName = porjectName == null ? null : porjectName.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getInvestmentAmount() {
|
||||
return investmentAmount;
|
||||
}
|
||||
|
||||
public void setInvestmentAmount(BigDecimal investmentAmount) {
|
||||
this.investmentAmount = investmentAmount;
|
||||
}
|
||||
|
||||
public BigDecimal getShareRatio() {
|
||||
return shareRatio;
|
||||
}
|
||||
|
||||
public void setShareRatio(BigDecimal shareRatio) {
|
||||
this.shareRatio = shareRatio;
|
||||
}
|
||||
|
||||
public BigDecimal getTotalEquity() {
|
||||
return totalEquity;
|
||||
}
|
||||
|
||||
public void setTotalEquity(BigDecimal totalEquity) {
|
||||
this.totalEquity = totalEquity;
|
||||
}
|
||||
|
||||
public BigDecimal getShareCount() {
|
||||
return shareCount;
|
||||
}
|
||||
|
||||
public void setShareCount(BigDecimal shareCount) {
|
||||
this.shareCount = shareCount;
|
||||
}
|
||||
|
||||
public BigDecimal getExitMarketValue() {
|
||||
return exitMarketValue;
|
||||
}
|
||||
|
||||
public void setExitMarketValue(BigDecimal exitMarketValue) {
|
||||
this.exitMarketValue = exitMarketValue;
|
||||
}
|
||||
|
||||
public BigDecimal getExitYield() {
|
||||
return exitYield;
|
||||
}
|
||||
|
||||
public void setExitYield(BigDecimal exitYield) {
|
||||
this.exitYield = exitYield;
|
||||
}
|
||||
|
||||
public BigDecimal getExitFundEarnings() {
|
||||
return exitFundEarnings;
|
||||
}
|
||||
|
||||
public void setExitFundEarnings(BigDecimal exitFundEarnings) {
|
||||
this.exitFundEarnings = exitFundEarnings;
|
||||
}
|
||||
|
||||
public String getExitTiming() {
|
||||
return exitTiming;
|
||||
}
|
||||
|
||||
public void setExitTiming(String exitTiming) {
|
||||
this.exitTiming = exitTiming == null ? null : exitTiming.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getExitStockPrice() {
|
||||
return exitStockPrice;
|
||||
}
|
||||
|
||||
public void setExitStockPrice(BigDecimal exitStockPrice) {
|
||||
this.exitStockPrice = exitStockPrice;
|
||||
}
|
||||
}
|
@ -0,0 +1,890 @@
|
||||
package com.sztzjy.fund_investment.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class ExitTimeExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public ExitTimeExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andFlowIdIsNull() {
|
||||
addCriterion("flow_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdIsNotNull() {
|
||||
addCriterion("flow_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdEqualTo(String value) {
|
||||
addCriterion("flow_id =", value, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdNotEqualTo(String value) {
|
||||
addCriterion("flow_id <>", value, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdGreaterThan(String value) {
|
||||
addCriterion("flow_id >", value, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("flow_id >=", value, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdLessThan(String value) {
|
||||
addCriterion("flow_id <", value, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("flow_id <=", value, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdLike(String value) {
|
||||
addCriterion("flow_id like", value, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdNotLike(String value) {
|
||||
addCriterion("flow_id not like", value, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdIn(List<String> values) {
|
||||
addCriterion("flow_id in", values, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdNotIn(List<String> values) {
|
||||
addCriterion("flow_id not in", values, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdBetween(String value1, String value2) {
|
||||
addCriterion("flow_id between", value1, value2, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFlowIdNotBetween(String value1, String value2) {
|
||||
addCriterion("flow_id not between", value1, value2, "flowId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameIsNull() {
|
||||
addCriterion("porject_name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameIsNotNull() {
|
||||
addCriterion("porject_name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameEqualTo(String value) {
|
||||
addCriterion("porject_name =", value, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameNotEqualTo(String value) {
|
||||
addCriterion("porject_name <>", value, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameGreaterThan(String value) {
|
||||
addCriterion("porject_name >", value, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("porject_name >=", value, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameLessThan(String value) {
|
||||
addCriterion("porject_name <", value, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("porject_name <=", value, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameLike(String value) {
|
||||
addCriterion("porject_name like", value, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameNotLike(String value) {
|
||||
addCriterion("porject_name not like", value, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameIn(List<String> values) {
|
||||
addCriterion("porject_name in", values, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameNotIn(List<String> values) {
|
||||
addCriterion("porject_name not in", values, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameBetween(String value1, String value2) {
|
||||
addCriterion("porject_name between", value1, value2, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPorjectNameNotBetween(String value1, String value2) {
|
||||
addCriterion("porject_name not between", value1, value2, "porjectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountIsNull() {
|
||||
addCriterion("investment_amount is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountIsNotNull() {
|
||||
addCriterion("investment_amount is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountEqualTo(BigDecimal value) {
|
||||
addCriterion("investment_amount =", value, "investmentAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountNotEqualTo(BigDecimal value) {
|
||||
addCriterion("investment_amount <>", value, "investmentAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountGreaterThan(BigDecimal value) {
|
||||
addCriterion("investment_amount >", value, "investmentAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("investment_amount >=", value, "investmentAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountLessThan(BigDecimal value) {
|
||||
addCriterion("investment_amount <", value, "investmentAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("investment_amount <=", value, "investmentAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountIn(List<BigDecimal> values) {
|
||||
addCriterion("investment_amount in", values, "investmentAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountNotIn(List<BigDecimal> values) {
|
||||
addCriterion("investment_amount not in", values, "investmentAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("investment_amount between", value1, value2, "investmentAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andInvestmentAmountNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("investment_amount not between", value1, value2, "investmentAmount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioIsNull() {
|
||||
addCriterion("share_ratio is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioIsNotNull() {
|
||||
addCriterion("share_ratio is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioEqualTo(BigDecimal value) {
|
||||
addCriterion("share_ratio =", value, "shareRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioNotEqualTo(BigDecimal value) {
|
||||
addCriterion("share_ratio <>", value, "shareRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioGreaterThan(BigDecimal value) {
|
||||
addCriterion("share_ratio >", value, "shareRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("share_ratio >=", value, "shareRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioLessThan(BigDecimal value) {
|
||||
addCriterion("share_ratio <", value, "shareRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("share_ratio <=", value, "shareRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioIn(List<BigDecimal> values) {
|
||||
addCriterion("share_ratio in", values, "shareRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioNotIn(List<BigDecimal> values) {
|
||||
addCriterion("share_ratio not in", values, "shareRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("share_ratio between", value1, value2, "shareRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareRatioNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("share_ratio not between", value1, value2, "shareRatio");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityIsNull() {
|
||||
addCriterion("total_equity is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityIsNotNull() {
|
||||
addCriterion("total_equity is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityEqualTo(BigDecimal value) {
|
||||
addCriterion("total_equity =", value, "totalEquity");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityNotEqualTo(BigDecimal value) {
|
||||
addCriterion("total_equity <>", value, "totalEquity");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityGreaterThan(BigDecimal value) {
|
||||
addCriterion("total_equity >", value, "totalEquity");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("total_equity >=", value, "totalEquity");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityLessThan(BigDecimal value) {
|
||||
addCriterion("total_equity <", value, "totalEquity");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("total_equity <=", value, "totalEquity");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityIn(List<BigDecimal> values) {
|
||||
addCriterion("total_equity in", values, "totalEquity");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityNotIn(List<BigDecimal> values) {
|
||||
addCriterion("total_equity not in", values, "totalEquity");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("total_equity between", value1, value2, "totalEquity");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTotalEquityNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("total_equity not between", value1, value2, "totalEquity");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountIsNull() {
|
||||
addCriterion("share_count is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountIsNotNull() {
|
||||
addCriterion("share_count is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountEqualTo(BigDecimal value) {
|
||||
addCriterion("share_count =", value, "shareCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountNotEqualTo(BigDecimal value) {
|
||||
addCriterion("share_count <>", value, "shareCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountGreaterThan(BigDecimal value) {
|
||||
addCriterion("share_count >", value, "shareCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("share_count >=", value, "shareCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountLessThan(BigDecimal value) {
|
||||
addCriterion("share_count <", value, "shareCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("share_count <=", value, "shareCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountIn(List<BigDecimal> values) {
|
||||
addCriterion("share_count in", values, "shareCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountNotIn(List<BigDecimal> values) {
|
||||
addCriterion("share_count not in", values, "shareCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("share_count between", value1, value2, "shareCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andShareCountNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("share_count not between", value1, value2, "shareCount");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueIsNull() {
|
||||
addCriterion("exit_market_value is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueIsNotNull() {
|
||||
addCriterion("exit_market_value is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_market_value =", value, "exitMarketValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueNotEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_market_value <>", value, "exitMarketValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueGreaterThan(BigDecimal value) {
|
||||
addCriterion("exit_market_value >", value, "exitMarketValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_market_value >=", value, "exitMarketValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueLessThan(BigDecimal value) {
|
||||
addCriterion("exit_market_value <", value, "exitMarketValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_market_value <=", value, "exitMarketValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueIn(List<BigDecimal> values) {
|
||||
addCriterion("exit_market_value in", values, "exitMarketValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueNotIn(List<BigDecimal> values) {
|
||||
addCriterion("exit_market_value not in", values, "exitMarketValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("exit_market_value between", value1, value2, "exitMarketValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitMarketValueNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("exit_market_value not between", value1, value2, "exitMarketValue");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldIsNull() {
|
||||
addCriterion("exit_yield is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldIsNotNull() {
|
||||
addCriterion("exit_yield is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_yield =", value, "exitYield");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldNotEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_yield <>", value, "exitYield");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldGreaterThan(BigDecimal value) {
|
||||
addCriterion("exit_yield >", value, "exitYield");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_yield >=", value, "exitYield");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldLessThan(BigDecimal value) {
|
||||
addCriterion("exit_yield <", value, "exitYield");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_yield <=", value, "exitYield");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldIn(List<BigDecimal> values) {
|
||||
addCriterion("exit_yield in", values, "exitYield");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldNotIn(List<BigDecimal> values) {
|
||||
addCriterion("exit_yield not in", values, "exitYield");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("exit_yield between", value1, value2, "exitYield");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitYieldNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("exit_yield not between", value1, value2, "exitYield");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsIsNull() {
|
||||
addCriterion("exit_fund_earnings is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsIsNotNull() {
|
||||
addCriterion("exit_fund_earnings is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_fund_earnings =", value, "exitFundEarnings");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsNotEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_fund_earnings <>", value, "exitFundEarnings");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsGreaterThan(BigDecimal value) {
|
||||
addCriterion("exit_fund_earnings >", value, "exitFundEarnings");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_fund_earnings >=", value, "exitFundEarnings");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsLessThan(BigDecimal value) {
|
||||
addCriterion("exit_fund_earnings <", value, "exitFundEarnings");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_fund_earnings <=", value, "exitFundEarnings");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsIn(List<BigDecimal> values) {
|
||||
addCriterion("exit_fund_earnings in", values, "exitFundEarnings");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsNotIn(List<BigDecimal> values) {
|
||||
addCriterion("exit_fund_earnings not in", values, "exitFundEarnings");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("exit_fund_earnings between", value1, value2, "exitFundEarnings");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitFundEarningsNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("exit_fund_earnings not between", value1, value2, "exitFundEarnings");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingIsNull() {
|
||||
addCriterion("exit_timing is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingIsNotNull() {
|
||||
addCriterion("exit_timing is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingEqualTo(String value) {
|
||||
addCriterion("exit_timing =", value, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingNotEqualTo(String value) {
|
||||
addCriterion("exit_timing <>", value, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingGreaterThan(String value) {
|
||||
addCriterion("exit_timing >", value, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("exit_timing >=", value, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingLessThan(String value) {
|
||||
addCriterion("exit_timing <", value, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingLessThanOrEqualTo(String value) {
|
||||
addCriterion("exit_timing <=", value, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingLike(String value) {
|
||||
addCriterion("exit_timing like", value, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingNotLike(String value) {
|
||||
addCriterion("exit_timing not like", value, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingIn(List<String> values) {
|
||||
addCriterion("exit_timing in", values, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingNotIn(List<String> values) {
|
||||
addCriterion("exit_timing not in", values, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingBetween(String value1, String value2) {
|
||||
addCriterion("exit_timing between", value1, value2, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitTimingNotBetween(String value1, String value2) {
|
||||
addCriterion("exit_timing not between", value1, value2, "exitTiming");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceIsNull() {
|
||||
addCriterion("exit_stock_price is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceIsNotNull() {
|
||||
addCriterion("exit_stock_price is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_stock_price =", value, "exitStockPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceNotEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_stock_price <>", value, "exitStockPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceGreaterThan(BigDecimal value) {
|
||||
addCriterion("exit_stock_price >", value, "exitStockPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_stock_price >=", value, "exitStockPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceLessThan(BigDecimal value) {
|
||||
addCriterion("exit_stock_price <", value, "exitStockPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("exit_stock_price <=", value, "exitStockPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceIn(List<BigDecimal> values) {
|
||||
addCriterion("exit_stock_price in", values, "exitStockPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceNotIn(List<BigDecimal> values) {
|
||||
addCriterion("exit_stock_price not in", values, "exitStockPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("exit_stock_price between", value1, value2, "exitStockPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andExitStockPriceNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("exit_stock_price not between", value1, value2, "exitStockPrice");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.sztzjy.fund_investment.mapper;
|
||||
|
||||
import com.sztzjy.fund_investment.entity.ExitTime;
|
||||
import com.sztzjy.fund_investment.entity.ExitTimeExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface ExitTimeMapper {
|
||||
long countByExample(ExitTimeExample example);
|
||||
|
||||
int deleteByExample(ExitTimeExample example);
|
||||
|
||||
int deleteByPrimaryKey(String flowId);
|
||||
|
||||
int insert(ExitTime record);
|
||||
|
||||
int insertSelective(ExitTime record);
|
||||
|
||||
List<ExitTime> selectByExample(ExitTimeExample example);
|
||||
|
||||
ExitTime selectByPrimaryKey(String flowId);
|
||||
|
||||
int updateByExampleSelective(@Param("record") ExitTime record, @Param("example") ExitTimeExample example);
|
||||
|
||||
int updateByExample(@Param("record") ExitTime record, @Param("example") ExitTimeExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(ExitTime record);
|
||||
|
||||
int updateByPrimaryKey(ExitTime record);
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.sztzjy.fund_investment.service;
|
||||
|
||||
import com.sztzjy.fund_investment.entity.TrainingReport;
|
||||
import com.sztzjy.fund_investment.util.ResultEntity;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author xcj
|
||||
* @Date 2023/12/4
|
||||
*/
|
||||
public interface InvestmentReportService {
|
||||
ResultEntity<String> uploadReport(MultipartFile file, String fileName, String flowId, String schoolId);
|
||||
|
||||
List<TrainingReport> getTrainingReports(String flowId);
|
||||
|
||||
ResultEntity<String> commitExperience(TrainingReport trainingReport);
|
||||
}
|
@ -0,0 +1,306 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.fund_investment.mapper.ExitTimeMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.ExitTime">
|
||||
<id column="flow_id" jdbcType="VARCHAR" property="flowId" />
|
||||
<result column="porject_name" jdbcType="VARCHAR" property="porjectName" />
|
||||
<result column="investment_amount" jdbcType="DECIMAL" property="investmentAmount" />
|
||||
<result column="share_ratio" jdbcType="DECIMAL" property="shareRatio" />
|
||||
<result column="total_equity" jdbcType="DECIMAL" property="totalEquity" />
|
||||
<result column="share_count" jdbcType="DECIMAL" property="shareCount" />
|
||||
<result column="exit_market_value" jdbcType="DECIMAL" property="exitMarketValue" />
|
||||
<result column="exit_yield" jdbcType="DECIMAL" property="exitYield" />
|
||||
<result column="exit_fund_earnings" jdbcType="DECIMAL" property="exitFundEarnings" />
|
||||
<result column="exit_timing" jdbcType="VARCHAR" property="exitTiming" />
|
||||
<result column="exit_stock_price" jdbcType="DECIMAL" property="exitStockPrice" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
flow_id, porject_name, investment_amount, share_ratio, total_equity, share_count,
|
||||
exit_market_value, exit_yield, exit_fund_earnings, exit_timing, exit_stock_price
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.ExitTimeExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from exit_time
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from exit_time
|
||||
where flow_id = #{flowId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from exit_time
|
||||
where flow_id = #{flowId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.ExitTimeExample">
|
||||
delete from exit_time
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.ExitTime">
|
||||
insert into exit_time (flow_id, porject_name, investment_amount,
|
||||
share_ratio, total_equity, share_count,
|
||||
exit_market_value, exit_yield, exit_fund_earnings,
|
||||
exit_timing, exit_stock_price)
|
||||
values (#{flowId,jdbcType=VARCHAR}, #{porjectName,jdbcType=VARCHAR}, #{investmentAmount,jdbcType=DECIMAL},
|
||||
#{shareRatio,jdbcType=DECIMAL}, #{totalEquity,jdbcType=DECIMAL}, #{shareCount,jdbcType=DECIMAL},
|
||||
#{exitMarketValue,jdbcType=DECIMAL}, #{exitYield,jdbcType=DECIMAL}, #{exitFundEarnings,jdbcType=DECIMAL},
|
||||
#{exitTiming,jdbcType=VARCHAR}, #{exitStockPrice,jdbcType=DECIMAL})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.ExitTime">
|
||||
insert into exit_time
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="flowId != null">
|
||||
flow_id,
|
||||
</if>
|
||||
<if test="porjectName != null">
|
||||
porject_name,
|
||||
</if>
|
||||
<if test="investmentAmount != null">
|
||||
investment_amount,
|
||||
</if>
|
||||
<if test="shareRatio != null">
|
||||
share_ratio,
|
||||
</if>
|
||||
<if test="totalEquity != null">
|
||||
total_equity,
|
||||
</if>
|
||||
<if test="shareCount != null">
|
||||
share_count,
|
||||
</if>
|
||||
<if test="exitMarketValue != null">
|
||||
exit_market_value,
|
||||
</if>
|
||||
<if test="exitYield != null">
|
||||
exit_yield,
|
||||
</if>
|
||||
<if test="exitFundEarnings != null">
|
||||
exit_fund_earnings,
|
||||
</if>
|
||||
<if test="exitTiming != null">
|
||||
exit_timing,
|
||||
</if>
|
||||
<if test="exitStockPrice != null">
|
||||
exit_stock_price,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="flowId != null">
|
||||
#{flowId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="porjectName != null">
|
||||
#{porjectName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="investmentAmount != null">
|
||||
#{investmentAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="shareRatio != null">
|
||||
#{shareRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="totalEquity != null">
|
||||
#{totalEquity,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="shareCount != null">
|
||||
#{shareCount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="exitMarketValue != null">
|
||||
#{exitMarketValue,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="exitYield != null">
|
||||
#{exitYield,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="exitFundEarnings != null">
|
||||
#{exitFundEarnings,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="exitTiming != null">
|
||||
#{exitTiming,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="exitStockPrice != null">
|
||||
#{exitStockPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.ExitTimeExample" resultType="java.lang.Long">
|
||||
select count(*) from exit_time
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update exit_time
|
||||
<set>
|
||||
<if test="record.flowId != null">
|
||||
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.porjectName != null">
|
||||
porject_name = #{record.porjectName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.investmentAmount != null">
|
||||
investment_amount = #{record.investmentAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.shareRatio != null">
|
||||
share_ratio = #{record.shareRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.totalEquity != null">
|
||||
total_equity = #{record.totalEquity,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.shareCount != null">
|
||||
share_count = #{record.shareCount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.exitMarketValue != null">
|
||||
exit_market_value = #{record.exitMarketValue,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.exitYield != null">
|
||||
exit_yield = #{record.exitYield,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.exitFundEarnings != null">
|
||||
exit_fund_earnings = #{record.exitFundEarnings,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.exitTiming != null">
|
||||
exit_timing = #{record.exitTiming,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.exitStockPrice != null">
|
||||
exit_stock_price = #{record.exitStockPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update exit_time
|
||||
set flow_id = #{record.flowId,jdbcType=VARCHAR},
|
||||
porject_name = #{record.porjectName,jdbcType=VARCHAR},
|
||||
investment_amount = #{record.investmentAmount,jdbcType=DECIMAL},
|
||||
share_ratio = #{record.shareRatio,jdbcType=DECIMAL},
|
||||
total_equity = #{record.totalEquity,jdbcType=DECIMAL},
|
||||
share_count = #{record.shareCount,jdbcType=DECIMAL},
|
||||
exit_market_value = #{record.exitMarketValue,jdbcType=DECIMAL},
|
||||
exit_yield = #{record.exitYield,jdbcType=DECIMAL},
|
||||
exit_fund_earnings = #{record.exitFundEarnings,jdbcType=DECIMAL},
|
||||
exit_timing = #{record.exitTiming,jdbcType=VARCHAR},
|
||||
exit_stock_price = #{record.exitStockPrice,jdbcType=DECIMAL}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.ExitTime">
|
||||
update exit_time
|
||||
<set>
|
||||
<if test="porjectName != null">
|
||||
porject_name = #{porjectName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="investmentAmount != null">
|
||||
investment_amount = #{investmentAmount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="shareRatio != null">
|
||||
share_ratio = #{shareRatio,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="totalEquity != null">
|
||||
total_equity = #{totalEquity,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="shareCount != null">
|
||||
share_count = #{shareCount,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="exitMarketValue != null">
|
||||
exit_market_value = #{exitMarketValue,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="exitYield != null">
|
||||
exit_yield = #{exitYield,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="exitFundEarnings != null">
|
||||
exit_fund_earnings = #{exitFundEarnings,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="exitTiming != null">
|
||||
exit_timing = #{exitTiming,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="exitStockPrice != null">
|
||||
exit_stock_price = #{exitStockPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
</set>
|
||||
where flow_id = #{flowId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.ExitTime">
|
||||
update exit_time
|
||||
set porject_name = #{porjectName,jdbcType=VARCHAR},
|
||||
investment_amount = #{investmentAmount,jdbcType=DECIMAL},
|
||||
share_ratio = #{shareRatio,jdbcType=DECIMAL},
|
||||
total_equity = #{totalEquity,jdbcType=DECIMAL},
|
||||
share_count = #{shareCount,jdbcType=DECIMAL},
|
||||
exit_market_value = #{exitMarketValue,jdbcType=DECIMAL},
|
||||
exit_yield = #{exitYield,jdbcType=DECIMAL},
|
||||
exit_fund_earnings = #{exitFundEarnings,jdbcType=DECIMAL},
|
||||
exit_timing = #{exitTiming,jdbcType=VARCHAR},
|
||||
exit_stock_price = #{exitStockPrice,jdbcType=DECIMAL}
|
||||
where flow_id = #{flowId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
@ -1,439 +1,469 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.fund_investment.mapper.TopicsMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.Topics">
|
||||
<id column="topic_id" jdbcType="VARCHAR" property="topicId" />
|
||||
<result column="choicesA" jdbcType="VARCHAR" property="choicesa" />
|
||||
<result column="choicesB" jdbcType="VARCHAR" property="choicesb" />
|
||||
<result column="choicesC" jdbcType="VARCHAR" property="choicesc" />
|
||||
<result column="choicesD" jdbcType="VARCHAR" property="choicesd" />
|
||||
<result column="choicesE" jdbcType="VARCHAR" property="choicese" />
|
||||
<result column="topic_type" jdbcType="VARCHAR" property="topicType" />
|
||||
<result column="source" jdbcType="VARCHAR" property="source" />
|
||||
<result column="module" jdbcType="VARCHAR" property="module" />
|
||||
<result column="answer" jdbcType="VARCHAR" property="answer" />
|
||||
<result column="user_answer" jdbcType="VARCHAR" property="userAnswer" />
|
||||
<result column="score" jdbcType="INTEGER" property="score" />
|
||||
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.fund_investment.entity.TopicsWithBLOBs">
|
||||
<result column="topic_content" jdbcType="LONGVARCHAR" property="topicContent" />
|
||||
<result column="analysis" jdbcType="LONGVARCHAR" property="analysis" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.Topics">
|
||||
<id column="topic_id" jdbcType="VARCHAR" property="topicId"/>
|
||||
<result column="choicesA" jdbcType="VARCHAR" property="choicesa"/>
|
||||
<result column="choicesB" jdbcType="VARCHAR" property="choicesb"/>
|
||||
<result column="choicesC" jdbcType="VARCHAR" property="choicesc"/>
|
||||
<result column="choicesD" jdbcType="VARCHAR" property="choicesd"/>
|
||||
<result column="choicesE" jdbcType="VARCHAR" property="choicese"/>
|
||||
<result column="topic_type" jdbcType="VARCHAR" property="topicType"/>
|
||||
<result column="source" jdbcType="VARCHAR" property="source"/>
|
||||
<result column="module" jdbcType="VARCHAR" property="module"/>
|
||||
<result column="answer" jdbcType="VARCHAR" property="answer"/>
|
||||
<result column="user_answer" jdbcType="VARCHAR" property="userAnswer"/>
|
||||
<result column="score" jdbcType="INTEGER" property="score"/>
|
||||
<result column="school_id" jdbcType="VARCHAR" property="schoolId"/>
|
||||
</resultMap>
|
||||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.fund_investment.entity.TopicsWithBLOBs">
|
||||
<result column="topic_content" jdbcType="LONGVARCHAR" property="topicContent"/>
|
||||
<result column="analysis" jdbcType="LONGVARCHAR" property="analysis"/>
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
topic_id, choicesA, choicesB, choicesC, choicesD, choicesE, topic_type, source, module,
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
topic_id
|
||||
, choicesA, choicesB, choicesC, choicesD, choicesE, topic_type, source, module,
|
||||
answer, user_answer, score, school_id
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
topic_content, analysis
|
||||
</sql>
|
||||
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.fund_investment.entity.TopicsExample" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from sys_topics
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.TopicsExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from sys_topics
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
from sys_topics
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from sys_topics
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.TopicsExample">
|
||||
delete from sys_topics
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.TopicsWithBLOBs">
|
||||
insert into sys_topics (topic_id, choicesA, choicesB,
|
||||
choicesC, choicesD, choicesE,
|
||||
topic_type, source, module,
|
||||
answer, user_answer, score,
|
||||
school_id, topic_content, analysis
|
||||
)
|
||||
values (#{topicId,jdbcType=VARCHAR}, #{choicesa,jdbcType=VARCHAR}, #{choicesb,jdbcType=VARCHAR},
|
||||
#{choicesc,jdbcType=VARCHAR}, #{choicesd,jdbcType=VARCHAR}, #{choicese,jdbcType=VARCHAR},
|
||||
#{topicType,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR}, #{module,jdbcType=VARCHAR},
|
||||
#{answer,jdbcType=VARCHAR}, #{userAnswer,jdbcType=VARCHAR}, #{score,jdbcType=INTEGER},
|
||||
#{schoolId,jdbcType=VARCHAR}, #{topicContent,jdbcType=LONGVARCHAR}, #{analysis,jdbcType=LONGVARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.TopicsWithBLOBs">
|
||||
insert into sys_topics
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="topicId != null">
|
||||
topic_id,
|
||||
</if>
|
||||
<if test="choicesa != null">
|
||||
choicesA,
|
||||
</if>
|
||||
<if test="choicesb != null">
|
||||
choicesB,
|
||||
</if>
|
||||
<if test="choicesc != null">
|
||||
choicesC,
|
||||
</if>
|
||||
<if test="choicesd != null">
|
||||
choicesD,
|
||||
</if>
|
||||
<if test="choicese != null">
|
||||
choicesE,
|
||||
</if>
|
||||
<if test="topicType != null">
|
||||
topic_type,
|
||||
</if>
|
||||
<if test="source != null">
|
||||
source,
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module,
|
||||
</if>
|
||||
<if test="answer != null">
|
||||
answer,
|
||||
</if>
|
||||
<if test="userAnswer != null">
|
||||
user_answer,
|
||||
</if>
|
||||
<if test="score != null">
|
||||
score,
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id,
|
||||
</if>
|
||||
<if test="topicContent != null">
|
||||
topic_content,
|
||||
</if>
|
||||
<if test="analysis != null">
|
||||
analysis,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="topicId != null">
|
||||
#{topicId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesa != null">
|
||||
#{choicesa,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesb != null">
|
||||
#{choicesb,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesc != null">
|
||||
#{choicesc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesd != null">
|
||||
#{choicesd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicese != null">
|
||||
#{choicese,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicType != null">
|
||||
#{topicType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="source != null">
|
||||
#{source,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
#{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="answer != null">
|
||||
#{answer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userAnswer != null">
|
||||
#{userAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="score != null">
|
||||
#{score,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
#{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicContent != null">
|
||||
#{topicContent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="analysis != null">
|
||||
#{analysis,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
topic_content
|
||||
, analysis
|
||||
</sql>
|
||||
|
||||
|
||||
<select id="getTopicsByCondition" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
,
|
||||
<include refid="Blob_Column_List"/>
|
||||
from sys_topics
|
||||
<where>
|
||||
<if test="schoolId != null">
|
||||
AND school_id in (#{schoolId},'999')
|
||||
</if>
|
||||
<if test="module != null">
|
||||
AND module = #{module}
|
||||
</if>
|
||||
<if test="topicContent != null">
|
||||
AND topic_content LIKE CONCAT('%', #{topicContent}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.fund_investment.entity.TopicsExample"
|
||||
resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List"/>
|
||||
,
|
||||
<include refid="Blob_Column_List"/>
|
||||
from sys_topics
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.TopicsExample"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List"/>
|
||||
from sys_topics
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
,
|
||||
<include refid="Blob_Column_List"/>
|
||||
from sys_topics
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete
|
||||
from sys_topics
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.TopicsExample">
|
||||
delete from sys_topics
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.TopicsWithBLOBs">
|
||||
insert into sys_topics (topic_id, choicesA, choicesB,
|
||||
choicesC, choicesD, choicesE,
|
||||
topic_type, source, module,
|
||||
answer, user_answer, score,
|
||||
school_id, topic_content, analysis)
|
||||
values (#{topicId,jdbcType=VARCHAR}, #{choicesa,jdbcType=VARCHAR}, #{choicesb,jdbcType=VARCHAR},
|
||||
#{choicesc,jdbcType=VARCHAR}, #{choicesd,jdbcType=VARCHAR}, #{choicese,jdbcType=VARCHAR},
|
||||
#{topicType,jdbcType=VARCHAR}, #{source,jdbcType=VARCHAR}, #{module,jdbcType=VARCHAR},
|
||||
#{answer,jdbcType=VARCHAR}, #{userAnswer,jdbcType=VARCHAR}, #{score,jdbcType=INTEGER},
|
||||
#{schoolId,jdbcType=VARCHAR}, #{topicContent,jdbcType=LONGVARCHAR}, #{analysis,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.TopicsWithBLOBs">
|
||||
insert into sys_topics
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="topicId != null">
|
||||
topic_id,
|
||||
</if>
|
||||
<if test="choicesa != null">
|
||||
choicesA,
|
||||
</if>
|
||||
<if test="choicesb != null">
|
||||
choicesB,
|
||||
</if>
|
||||
<if test="choicesc != null">
|
||||
choicesC,
|
||||
</if>
|
||||
<if test="choicesd != null">
|
||||
choicesD,
|
||||
</if>
|
||||
<if test="choicese != null">
|
||||
choicesE,
|
||||
</if>
|
||||
<if test="topicType != null">
|
||||
topic_type,
|
||||
</if>
|
||||
<if test="source != null">
|
||||
source,
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module,
|
||||
</if>
|
||||
<if test="answer != null">
|
||||
answer,
|
||||
</if>
|
||||
<if test="userAnswer != null">
|
||||
user_answer,
|
||||
</if>
|
||||
<if test="score != null">
|
||||
score,
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id,
|
||||
</if>
|
||||
<if test="topicContent != null">
|
||||
topic_content,
|
||||
</if>
|
||||
<if test="analysis != null">
|
||||
analysis,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="topicId != null">
|
||||
#{topicId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesa != null">
|
||||
#{choicesa,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesb != null">
|
||||
#{choicesb,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesc != null">
|
||||
#{choicesc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesd != null">
|
||||
#{choicesd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicese != null">
|
||||
#{choicese,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicType != null">
|
||||
#{topicType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="source != null">
|
||||
#{source,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
#{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="answer != null">
|
||||
#{answer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userAnswer != null">
|
||||
#{userAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="score != null">
|
||||
#{score,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
#{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicContent != null">
|
||||
#{topicContent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="analysis != null">
|
||||
#{analysis,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<insert id="insertBatch" parameterType="java.util.List">
|
||||
INSERT INTO sys_topics (topic_id, topic_content, choicesA, choicesB, choicesC, choicesD, choicesE, topic_type, source, module, answer, score, analysis, school_id)
|
||||
VALUES
|
||||
<foreach collection="list" item="topic" separator=",">
|
||||
(#{topic.topicId},#{topic.topicContent}, #{topic.choicesa}, #{topic.choicesb}, #{topic.choicesc},
|
||||
#{topic.choicesd}, #{topic.choicese}, #{topic.topicType}, #{topic.source},
|
||||
#{topic.module}, #{topic.answer}, #{topic.score}, #{topic.analysis}, #{topic.schoolId})
|
||||
</foreach>
|
||||
</insert>
|
||||
<insert id="insertBatch" parameterType="java.util.List">
|
||||
INSERT INTO sys_topics (topic_id, topic_content, choicesA, choicesB, choicesC, choicesD, choicesE, topic_type,
|
||||
source, module, answer, score, analysis, school_id)
|
||||
VALUES
|
||||
<foreach collection="list" item="topic" separator=",">
|
||||
(#{topic.topicId},#{topic.topicContent}, #{topic.choicesa}, #{topic.choicesb}, #{topic.choicesc},
|
||||
#{topic.choicesd}, #{topic.choicese}, #{topic.topicType}, #{topic.source},
|
||||
#{topic.module}, #{topic.answer}, #{topic.score}, #{topic.analysis}, #{topic.schoolId})
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.TopicsExample" resultType="java.lang.Long">
|
||||
select count(*) from sys_topics
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update sys_topics
|
||||
<set>
|
||||
<if test="record.topicId != null">
|
||||
topic_id = #{record.topicId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.choicesa != null">
|
||||
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.TopicsExample"
|
||||
resultType="java.lang.Long">
|
||||
select count(*) from sys_topics
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update sys_topics
|
||||
<set>
|
||||
<if test="record.topicId != null">
|
||||
topic_id = #{record.topicId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.choicesa != null">
|
||||
choicesA = #{record.choicesa,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.choicesb != null">
|
||||
choicesB = #{record.choicesb,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.choicesc != null">
|
||||
choicesC = #{record.choicesc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.choicesd != null">
|
||||
choicesD = #{record.choicesd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.choicese != null">
|
||||
choicesE = #{record.choicese,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.topicType != null">
|
||||
topic_type = #{record.topicType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.source != null">
|
||||
source = #{record.source,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.module != null">
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.answer != null">
|
||||
answer = #{record.answer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.userAnswer != null">
|
||||
user_answer = #{record.userAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.score != null">
|
||||
score = #{record.score,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.schoolId != null">
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.topicContent != null">
|
||||
topic_content = #{record.topicContent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="record.analysis != null">
|
||||
analysis = #{record.analysis,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||
update sys_topics
|
||||
set topic_id = #{record.topicId,jdbcType=VARCHAR},
|
||||
choicesA = #{record.choicesa,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.choicesb != null">
|
||||
choicesB = #{record.choicesb,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.choicesc != null">
|
||||
choicesC = #{record.choicesc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.choicesd != null">
|
||||
choicesD = #{record.choicesd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.choicese != null">
|
||||
choicesE = #{record.choicese,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.topicType != null">
|
||||
topic_type = #{record.topicType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.source != null">
|
||||
source = #{record.source,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.module != null">
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.answer != null">
|
||||
answer = #{record.answer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.userAnswer != null">
|
||||
user_answer = #{record.userAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.score != null">
|
||||
score = #{record.score,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.schoolId != null">
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.topicContent != null">
|
||||
topic_content = #{record.topicContent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="record.analysis != null">
|
||||
analysis = #{record.analysis,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExampleWithBLOBs" parameterType="map">
|
||||
update sys_topics
|
||||
set topic_id = #{record.topicId,jdbcType=VARCHAR},
|
||||
choicesA = #{record.choicesa,jdbcType=VARCHAR},
|
||||
choicesB = #{record.choicesb,jdbcType=VARCHAR},
|
||||
choicesC = #{record.choicesc,jdbcType=VARCHAR},
|
||||
choicesD = #{record.choicesd,jdbcType=VARCHAR},
|
||||
choicesE = #{record.choicese,jdbcType=VARCHAR},
|
||||
topic_type = #{record.topicType,jdbcType=VARCHAR},
|
||||
source = #{record.source,jdbcType=VARCHAR},
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
answer = #{record.answer,jdbcType=VARCHAR},
|
||||
user_answer = #{record.userAnswer,jdbcType=VARCHAR},
|
||||
score = #{record.score,jdbcType=INTEGER},
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
topic_content = #{record.topicContent,jdbcType=LONGVARCHAR},
|
||||
analysis = #{record.analysis,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update sys_topics
|
||||
set topic_id = #{record.topicId,jdbcType=VARCHAR},
|
||||
choicesA = #{record.choicesa,jdbcType=VARCHAR},
|
||||
choicesB = #{record.choicesb,jdbcType=VARCHAR},
|
||||
choicesC = #{record.choicesc,jdbcType=VARCHAR},
|
||||
choicesD = #{record.choicesd,jdbcType=VARCHAR},
|
||||
choicesE = #{record.choicese,jdbcType=VARCHAR},
|
||||
topic_type = #{record.topicType,jdbcType=VARCHAR},
|
||||
source = #{record.source,jdbcType=VARCHAR},
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
answer = #{record.answer,jdbcType=VARCHAR},
|
||||
user_answer = #{record.userAnswer,jdbcType=VARCHAR},
|
||||
score = #{record.score,jdbcType=INTEGER},
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.TopicsWithBLOBs">
|
||||
update sys_topics
|
||||
<set>
|
||||
<if test="choicesa != null">
|
||||
choicesA = #{choicesa,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesb != null">
|
||||
choicesB = #{choicesb,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesc != null">
|
||||
choicesC = #{choicesc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesd != null">
|
||||
choicesD = #{choicesd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicese != null">
|
||||
choicesE = #{choicese,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicType != null">
|
||||
topic_type = #{topicType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="source != null">
|
||||
source = #{source,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="answer != null">
|
||||
answer = #{answer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userAnswer != null">
|
||||
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="score != null">
|
||||
score = #{score,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicContent != null">
|
||||
topic_content = #{topicContent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="analysis != null">
|
||||
analysis = #{analysis,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.fund_investment.entity.TopicsWithBLOBs">
|
||||
update sys_topics
|
||||
set choicesA = #{choicesa,jdbcType=VARCHAR},
|
||||
choicesB = #{choicesb,jdbcType=VARCHAR},
|
||||
choicesC = #{choicesc,jdbcType=VARCHAR},
|
||||
choicesD = #{choicesd,jdbcType=VARCHAR},
|
||||
choicesE = #{choicese,jdbcType=VARCHAR},
|
||||
topic_type = #{topicType,jdbcType=VARCHAR},
|
||||
source = #{source,jdbcType=VARCHAR},
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
answer = #{answer,jdbcType=VARCHAR},
|
||||
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
||||
score = #{score,jdbcType=INTEGER},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
topic_content = #{topicContent,jdbcType=LONGVARCHAR},
|
||||
analysis = #{analysis,jdbcType=LONGVARCHAR}
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.Topics">
|
||||
update sys_topics
|
||||
set choicesA = #{choicesa,jdbcType=VARCHAR},
|
||||
choicesB = #{choicesb,jdbcType=VARCHAR},
|
||||
choicesC = #{choicesc,jdbcType=VARCHAR},
|
||||
choicesD = #{choicesd,jdbcType=VARCHAR},
|
||||
choicesE = #{choicese,jdbcType=VARCHAR},
|
||||
topic_type = #{topicType,jdbcType=VARCHAR},
|
||||
source = #{source,jdbcType=VARCHAR},
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
answer = #{answer,jdbcType=VARCHAR},
|
||||
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
||||
score = #{score,jdbcType=INTEGER},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR}
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
analysis = #{record.analysis,jdbcType=LONGVARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update sys_topics
|
||||
set topic_id = #{record.topicId,jdbcType=VARCHAR},
|
||||
choicesA = #{record.choicesa,jdbcType=VARCHAR},
|
||||
choicesB = #{record.choicesb,jdbcType=VARCHAR},
|
||||
choicesC = #{record.choicesc,jdbcType=VARCHAR},
|
||||
choicesD = #{record.choicesd,jdbcType=VARCHAR},
|
||||
choicesE = #{record.choicese,jdbcType=VARCHAR},
|
||||
topic_type = #{record.topicType,jdbcType=VARCHAR},
|
||||
source = #{record.source,jdbcType=VARCHAR},
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
answer = #{record.answer,jdbcType=VARCHAR},
|
||||
user_answer = #{record.userAnswer,jdbcType=VARCHAR},
|
||||
score = #{record.score,jdbcType=INTEGER},
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.TopicsWithBLOBs">
|
||||
update sys_topics
|
||||
<set>
|
||||
<if test="choicesa != null">
|
||||
choicesA = #{choicesa,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesb != null">
|
||||
choicesB = #{choicesb,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesc != null">
|
||||
choicesC = #{choicesc,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicesd != null">
|
||||
choicesD = #{choicesd,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="choicese != null">
|
||||
choicesE = #{choicese,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicType != null">
|
||||
topic_type = #{topicType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="source != null">
|
||||
source = #{source,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="answer != null">
|
||||
answer = #{answer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userAnswer != null">
|
||||
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="score != null">
|
||||
score = #{score,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="topicContent != null">
|
||||
topic_content = #{topicContent,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
<if test="analysis != null">
|
||||
analysis = #{analysis,jdbcType=LONGVARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.fund_investment.entity.TopicsWithBLOBs">
|
||||
update sys_topics
|
||||
set choicesA = #{choicesa,jdbcType=VARCHAR},
|
||||
choicesB = #{choicesb,jdbcType=VARCHAR},
|
||||
choicesC = #{choicesc,jdbcType=VARCHAR},
|
||||
choicesD = #{choicesd,jdbcType=VARCHAR},
|
||||
choicesE = #{choicese,jdbcType=VARCHAR},
|
||||
topic_type = #{topicType,jdbcType=VARCHAR},
|
||||
source = #{source,jdbcType=VARCHAR},
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
answer = #{answer,jdbcType=VARCHAR},
|
||||
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
||||
score = #{score,jdbcType=INTEGER},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
topic_content = #{topicContent,jdbcType=LONGVARCHAR},
|
||||
analysis = #{analysis,jdbcType=LONGVARCHAR}
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.Topics">
|
||||
update sys_topics
|
||||
set choicesA = #{choicesa,jdbcType=VARCHAR},
|
||||
choicesB = #{choicesb,jdbcType=VARCHAR},
|
||||
choicesC = #{choicesc,jdbcType=VARCHAR},
|
||||
choicesD = #{choicesd,jdbcType=VARCHAR},
|
||||
choicesE = #{choicese,jdbcType=VARCHAR},
|
||||
topic_type = #{topicType,jdbcType=VARCHAR},
|
||||
source = #{source,jdbcType=VARCHAR},
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
answer = #{answer,jdbcType=VARCHAR},
|
||||
user_answer = #{userAnswer,jdbcType=VARCHAR},
|
||||
score = #{score,jdbcType=INTEGER},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR}
|
||||
where topic_id = #{topicId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue