新增项目尽调功能、项目估值PE、PB、PS等
parent
82bc5b7226
commit
f702239506
@ -0,0 +1,31 @@
|
||||
package com.sztzjy.fund_investment.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
*
|
||||
* @author xcj
|
||||
* edu_company
|
||||
*/
|
||||
public class EduCompany {
|
||||
@ApiModelProperty("公司信息id")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("公司名")
|
||||
private String name;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id == null ? null : id.trim();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name == null ? null : name.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,339 @@
|
||||
package com.sztzjy.fund_investment.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class EduCompanyExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public EduCompanyExample() {
|
||||
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 andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(String value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(String value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(String value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(String value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLike(String value) {
|
||||
addCriterion("id like", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotLike(String value) {
|
||||
addCriterion("id not like", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<String> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<String> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(String value1, String value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(String value1, String value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNull() {
|
||||
addCriterion("name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIsNotNull() {
|
||||
addCriterion("name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameEqualTo(String value) {
|
||||
addCriterion("name =", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotEqualTo(String value) {
|
||||
addCriterion("name <>", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThan(String value) {
|
||||
addCriterion("name >", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("name >=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThan(String value) {
|
||||
addCriterion("name <", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("name <=", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameLike(String value) {
|
||||
addCriterion("name like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotLike(String value) {
|
||||
addCriterion("name not like", value, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameIn(List<String> values) {
|
||||
addCriterion("name in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotIn(List<String> values) {
|
||||
addCriterion("name not in", values, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameBetween(String value1, String value2) {
|
||||
addCriterion("name between", value1, value2, "name");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNameNotBetween(String value1, String value2) {
|
||||
addCriterion("name not between", value1, value2, "name");
|
||||
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,198 @@
|
||||
package com.sztzjy.fund_investment.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
*
|
||||
* @author xcj
|
||||
* edu_project_valuation
|
||||
*/
|
||||
public class EduProjectValuation {
|
||||
@ApiModelProperty("项目估值id")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("可比公司名称")
|
||||
private String companyid;
|
||||
|
||||
@ApiModelProperty("选取公司id")
|
||||
private String projectPoolId;
|
||||
|
||||
@ApiModelProperty("每股市价(可比公司)")
|
||||
private BigDecimal marketPrice;
|
||||
|
||||
@ApiModelProperty("每股收益(可比公司)")
|
||||
private BigDecimal earnings;
|
||||
|
||||
@ApiModelProperty("每股收益(选取公司)")
|
||||
private BigDecimal earnings1;
|
||||
|
||||
@ApiModelProperty("增长率")
|
||||
private BigDecimal growthRate;
|
||||
|
||||
@ApiModelProperty("增长率")
|
||||
private BigDecimal growthRate1;
|
||||
|
||||
@ApiModelProperty("每股净资产")
|
||||
private BigDecimal netWorth;
|
||||
|
||||
@ApiModelProperty("每股净资产")
|
||||
private BigDecimal netWorth1;
|
||||
|
||||
@ApiModelProperty("权益净利率")
|
||||
private BigDecimal netInterest;
|
||||
|
||||
@ApiModelProperty("权益净利率")
|
||||
private BigDecimal netInterest1;
|
||||
|
||||
@ApiModelProperty("每股营业收入")
|
||||
private BigDecimal operatingIncome;
|
||||
|
||||
@ApiModelProperty("每股营业收入")
|
||||
private BigDecimal operatingIncome1;
|
||||
|
||||
@ApiModelProperty("营业净利率")
|
||||
private BigDecimal netOperatinginterestRate;
|
||||
|
||||
@ApiModelProperty("营业净利率")
|
||||
private BigDecimal netOperatinginterestRate1;
|
||||
|
||||
@ApiModelProperty("PE-1 PB-2 PS-3")
|
||||
private Integer methodId;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id == null ? null : id.trim();
|
||||
}
|
||||
|
||||
public String getCompanyid() {
|
||||
return companyid;
|
||||
}
|
||||
|
||||
public void setCompanyid(String companyid) {
|
||||
this.companyid = companyid == null ? null : companyid.trim();
|
||||
}
|
||||
|
||||
public String getProjectPoolId() {
|
||||
return projectPoolId;
|
||||
}
|
||||
|
||||
public void setProjectPoolId(String projectPoolId) {
|
||||
this.projectPoolId = projectPoolId == null ? null : projectPoolId.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getMarketPrice() {
|
||||
return marketPrice;
|
||||
}
|
||||
|
||||
public void setMarketPrice(BigDecimal marketPrice) {
|
||||
this.marketPrice = marketPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getEarnings() {
|
||||
return earnings;
|
||||
}
|
||||
|
||||
public void setEarnings(BigDecimal earnings) {
|
||||
this.earnings = earnings;
|
||||
}
|
||||
|
||||
public BigDecimal getEarnings1() {
|
||||
return earnings1;
|
||||
}
|
||||
|
||||
public void setEarnings1(BigDecimal earnings1) {
|
||||
this.earnings1 = earnings1;
|
||||
}
|
||||
|
||||
public BigDecimal getGrowthRate() {
|
||||
return growthRate;
|
||||
}
|
||||
|
||||
public void setGrowthRate(BigDecimal growthRate) {
|
||||
this.growthRate = growthRate;
|
||||
}
|
||||
|
||||
public BigDecimal getGrowthRate1() {
|
||||
return growthRate1;
|
||||
}
|
||||
|
||||
public void setGrowthRate1(BigDecimal growthRate1) {
|
||||
this.growthRate1 = growthRate1;
|
||||
}
|
||||
|
||||
public BigDecimal getNetWorth() {
|
||||
return netWorth;
|
||||
}
|
||||
|
||||
public void setNetWorth(BigDecimal netWorth) {
|
||||
this.netWorth = netWorth;
|
||||
}
|
||||
|
||||
public BigDecimal getNetWorth1() {
|
||||
return netWorth1;
|
||||
}
|
||||
|
||||
public void setNetWorth1(BigDecimal netWorth1) {
|
||||
this.netWorth1 = netWorth1;
|
||||
}
|
||||
|
||||
public BigDecimal getNetInterest() {
|
||||
return netInterest;
|
||||
}
|
||||
|
||||
public void setNetInterest(BigDecimal netInterest) {
|
||||
this.netInterest = netInterest;
|
||||
}
|
||||
|
||||
public BigDecimal getNetInterest1() {
|
||||
return netInterest1;
|
||||
}
|
||||
|
||||
public void setNetInterest1(BigDecimal netInterest1) {
|
||||
this.netInterest1 = netInterest1;
|
||||
}
|
||||
|
||||
public BigDecimal getOperatingIncome() {
|
||||
return operatingIncome;
|
||||
}
|
||||
|
||||
public void setOperatingIncome(BigDecimal operatingIncome) {
|
||||
this.operatingIncome = operatingIncome;
|
||||
}
|
||||
|
||||
public BigDecimal getOperatingIncome1() {
|
||||
return operatingIncome1;
|
||||
}
|
||||
|
||||
public void setOperatingIncome1(BigDecimal operatingIncome1) {
|
||||
this.operatingIncome1 = operatingIncome1;
|
||||
}
|
||||
|
||||
public BigDecimal getNetOperatinginterestRate() {
|
||||
return netOperatinginterestRate;
|
||||
}
|
||||
|
||||
public void setNetOperatinginterestRate(BigDecimal netOperatinginterestRate) {
|
||||
this.netOperatinginterestRate = netOperatinginterestRate;
|
||||
}
|
||||
|
||||
public BigDecimal getNetOperatinginterestRate1() {
|
||||
return netOperatinginterestRate1;
|
||||
}
|
||||
|
||||
public void setNetOperatinginterestRate1(BigDecimal netOperatinginterestRate1) {
|
||||
this.netOperatinginterestRate1 = netOperatinginterestRate1;
|
||||
}
|
||||
|
||||
public Integer getMethodId() {
|
||||
return methodId;
|
||||
}
|
||||
|
||||
public void setMethodId(Integer methodId) {
|
||||
this.methodId = methodId;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,218 @@
|
||||
package com.sztzjy.fund_investment.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
*
|
||||
* @author xcj
|
||||
* pro_business_info
|
||||
*/
|
||||
public class ProBusinessInfo {
|
||||
@ApiModelProperty("公司背景详情Id")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("项目池ID")
|
||||
private String projectPoolId;
|
||||
|
||||
@ApiModelProperty("注册资本")
|
||||
private String registeredCapital;
|
||||
|
||||
@ApiModelProperty("经营状态")
|
||||
private String operatingState;
|
||||
|
||||
@ApiModelProperty("统一社会信用代码")
|
||||
private String creditCode;
|
||||
|
||||
@ApiModelProperty("纳税人识别号")
|
||||
private String identificationNumber;
|
||||
|
||||
@ApiModelProperty("营业期限")
|
||||
private String businessTerm;
|
||||
|
||||
@ApiModelProperty("实缴资本")
|
||||
private String paidinCapital;
|
||||
|
||||
@ApiModelProperty("参保人数")
|
||||
private String insuranceNum;
|
||||
|
||||
@ApiModelProperty("成立日期")
|
||||
private String createDate;
|
||||
|
||||
@ApiModelProperty("工商注册号")
|
||||
private String registrationNum;
|
||||
|
||||
@ApiModelProperty("组织结构代码")
|
||||
private String orgaStruCode;
|
||||
|
||||
@ApiModelProperty("公司类型")
|
||||
private String companyType;
|
||||
|
||||
@ApiModelProperty("行业")
|
||||
private String industry;
|
||||
|
||||
@ApiModelProperty("核准日期")
|
||||
private String approvalDate;
|
||||
|
||||
@ApiModelProperty("人员规模")
|
||||
private String staffSize;
|
||||
|
||||
@ApiModelProperty("登记机关")
|
||||
private String registrar;
|
||||
|
||||
@ApiModelProperty("注册地址")
|
||||
private String registeredAddress;
|
||||
|
||||
@ApiModelProperty("经营范围")
|
||||
private String businessScope;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id == null ? null : id.trim();
|
||||
}
|
||||
|
||||
public String getProjectPoolId() {
|
||||
return projectPoolId;
|
||||
}
|
||||
|
||||
public void setProjectPoolId(String projectPoolId) {
|
||||
this.projectPoolId = projectPoolId == null ? null : projectPoolId.trim();
|
||||
}
|
||||
|
||||
public String getRegisteredCapital() {
|
||||
return registeredCapital;
|
||||
}
|
||||
|
||||
public void setRegisteredCapital(String registeredCapital) {
|
||||
this.registeredCapital = registeredCapital == null ? null : registeredCapital.trim();
|
||||
}
|
||||
|
||||
public String getOperatingState() {
|
||||
return operatingState;
|
||||
}
|
||||
|
||||
public void setOperatingState(String operatingState) {
|
||||
this.operatingState = operatingState == null ? null : operatingState.trim();
|
||||
}
|
||||
|
||||
public String getCreditCode() {
|
||||
return creditCode;
|
||||
}
|
||||
|
||||
public void setCreditCode(String creditCode) {
|
||||
this.creditCode = creditCode == null ? null : creditCode.trim();
|
||||
}
|
||||
|
||||
public String getIdentificationNumber() {
|
||||
return identificationNumber;
|
||||
}
|
||||
|
||||
public void setIdentificationNumber(String identificationNumber) {
|
||||
this.identificationNumber = identificationNumber == null ? null : identificationNumber.trim();
|
||||
}
|
||||
|
||||
public String getBusinessTerm() {
|
||||
return businessTerm;
|
||||
}
|
||||
|
||||
public void setBusinessTerm(String businessTerm) {
|
||||
this.businessTerm = businessTerm == null ? null : businessTerm.trim();
|
||||
}
|
||||
|
||||
public String getPaidinCapital() {
|
||||
return paidinCapital;
|
||||
}
|
||||
|
||||
public void setPaidinCapital(String paidinCapital) {
|
||||
this.paidinCapital = paidinCapital == null ? null : paidinCapital.trim();
|
||||
}
|
||||
|
||||
public String getInsuranceNum() {
|
||||
return insuranceNum;
|
||||
}
|
||||
|
||||
public void setInsuranceNum(String insuranceNum) {
|
||||
this.insuranceNum = insuranceNum == null ? null : insuranceNum.trim();
|
||||
}
|
||||
|
||||
public String getCreateDate() {
|
||||
return createDate;
|
||||
}
|
||||
|
||||
public void setCreateDate(String createDate) {
|
||||
this.createDate = createDate == null ? null : createDate.trim();
|
||||
}
|
||||
|
||||
public String getRegistrationNum() {
|
||||
return registrationNum;
|
||||
}
|
||||
|
||||
public void setRegistrationNum(String registrationNum) {
|
||||
this.registrationNum = registrationNum == null ? null : registrationNum.trim();
|
||||
}
|
||||
|
||||
public String getOrgaStruCode() {
|
||||
return orgaStruCode;
|
||||
}
|
||||
|
||||
public void setOrgaStruCode(String orgaStruCode) {
|
||||
this.orgaStruCode = orgaStruCode == null ? null : orgaStruCode.trim();
|
||||
}
|
||||
|
||||
public String getCompanyType() {
|
||||
return companyType;
|
||||
}
|
||||
|
||||
public void setCompanyType(String companyType) {
|
||||
this.companyType = companyType == null ? null : companyType.trim();
|
||||
}
|
||||
|
||||
public String getIndustry() {
|
||||
return industry;
|
||||
}
|
||||
|
||||
public void setIndustry(String industry) {
|
||||
this.industry = industry == null ? null : industry.trim();
|
||||
}
|
||||
|
||||
public String getApprovalDate() {
|
||||
return approvalDate;
|
||||
}
|
||||
|
||||
public void setApprovalDate(String approvalDate) {
|
||||
this.approvalDate = approvalDate == null ? null : approvalDate.trim();
|
||||
}
|
||||
|
||||
public String getStaffSize() {
|
||||
return staffSize;
|
||||
}
|
||||
|
||||
public void setStaffSize(String staffSize) {
|
||||
this.staffSize = staffSize == null ? null : staffSize.trim();
|
||||
}
|
||||
|
||||
public String getRegistrar() {
|
||||
return registrar;
|
||||
}
|
||||
|
||||
public void setRegistrar(String registrar) {
|
||||
this.registrar = registrar == null ? null : registrar.trim();
|
||||
}
|
||||
|
||||
public String getRegisteredAddress() {
|
||||
return registeredAddress;
|
||||
}
|
||||
|
||||
public void setRegisteredAddress(String registeredAddress) {
|
||||
this.registeredAddress = registeredAddress == null ? null : registeredAddress.trim();
|
||||
}
|
||||
|
||||
public String getBusinessScope() {
|
||||
return businessScope;
|
||||
}
|
||||
|
||||
public void setBusinessScope(String businessScope) {
|
||||
this.businessScope = businessScope == null ? null : businessScope.trim();
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,93 @@
|
||||
package com.sztzjy.fund_investment.entity.treeSelect;
|
||||
|
||||
|
||||
|
||||
import com.sztzjy.fund_investment.entity.ProFinancialIndex;
|
||||
import com.sztzjy.fund_investment.entity.ProFinancialStatement;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class TreeSelect implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/** 节点ID */
|
||||
private String id;
|
||||
|
||||
/** 节点名称 */
|
||||
private String name;
|
||||
|
||||
private String parentId;
|
||||
|
||||
/** 子节点 */
|
||||
private List<TreeSelect> children;
|
||||
|
||||
public TreeSelect(ProFinancialIndex financialIndex) {
|
||||
this.id=financialIndex.getId();
|
||||
this.name=financialIndex.getName();
|
||||
this.parentId=financialIndex.getParentId();
|
||||
}
|
||||
|
||||
public TreeSelect(ProFinancialStatement financialStatement) {
|
||||
this.id=financialStatement.getId();
|
||||
this.name=financialStatement.getName();
|
||||
this.parentId=financialStatement.getParentId();
|
||||
}
|
||||
|
||||
public static List<TreeSelect> buildTree(List<TreeSelect> dataList) {
|
||||
List<TreeSelect> treeList = new ArrayList<>();
|
||||
|
||||
for (TreeSelect data : dataList) {
|
||||
if ("0".equals(data.parentId)) {
|
||||
treeList.add(findChildren(data, dataList));
|
||||
}
|
||||
}
|
||||
|
||||
return treeList;
|
||||
}
|
||||
|
||||
private static TreeSelect findChildren(TreeSelect parent, List<TreeSelect> dataList) {
|
||||
for (TreeSelect data : dataList) {
|
||||
if (parent.id.equals(data.parentId)) {
|
||||
if (parent.children == null) {
|
||||
parent.children = new ArrayList<>();
|
||||
}
|
||||
parent.children.add(findChildren(data, dataList));
|
||||
}
|
||||
}
|
||||
|
||||
return parent;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getParentId() {
|
||||
return parentId;
|
||||
}
|
||||
|
||||
public void setParentId(String parentId) {
|
||||
this.parentId = parentId;
|
||||
}
|
||||
|
||||
public List<TreeSelect> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
public void setChildren(List<TreeSelect> children) {
|
||||
this.children = children;
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package com.sztzjy.fund_investment.mapper;
|
||||
|
||||
import com.sztzjy.fund_investment.entity.EduCompany;
|
||||
import com.sztzjy.fund_investment.entity.EduCompanyExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface EduCompanyMapper {
|
||||
long countByExample(EduCompanyExample example);
|
||||
|
||||
int deleteByExample(EduCompanyExample example);
|
||||
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int insert(EduCompany record);
|
||||
|
||||
int insertSelective(EduCompany record);
|
||||
|
||||
List<EduCompany> selectByExample(EduCompanyExample example);
|
||||
|
||||
EduCompany selectByPrimaryKey(String id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") EduCompany record, @Param("example") EduCompanyExample example);
|
||||
|
||||
int updateByExample(@Param("record") EduCompany record, @Param("example") EduCompanyExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(EduCompany record);
|
||||
|
||||
int updateByPrimaryKey(EduCompany record);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.sztzjy.fund_investment.mapper;
|
||||
|
||||
import com.sztzjy.fund_investment.entity.EduProjectValuation;
|
||||
import com.sztzjy.fund_investment.entity.EduProjectValuationExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface EduProjectValuationMapper {
|
||||
long countByExample(EduProjectValuationExample example);
|
||||
|
||||
int deleteByExample(EduProjectValuationExample example);
|
||||
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int insert(EduProjectValuation record);
|
||||
|
||||
int insertSelective(EduProjectValuation record);
|
||||
|
||||
List<EduProjectValuation> selectByExample(EduProjectValuationExample example);
|
||||
|
||||
EduProjectValuation selectByPrimaryKey(String id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") EduProjectValuation record, @Param("example") EduProjectValuationExample example);
|
||||
|
||||
int updateByExample(@Param("record") EduProjectValuation record, @Param("example") EduProjectValuationExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(EduProjectValuation record);
|
||||
|
||||
int updateByPrimaryKey(EduProjectValuation record);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.sztzjy.fund_investment.mapper;
|
||||
|
||||
import com.sztzjy.fund_investment.entity.ProBusinessInfo;
|
||||
import com.sztzjy.fund_investment.entity.ProBusinessInfoExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface ProBusinessInfoMapper {
|
||||
long countByExample(ProBusinessInfoExample example);
|
||||
|
||||
int deleteByExample(ProBusinessInfoExample example);
|
||||
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int insert(ProBusinessInfo record);
|
||||
|
||||
int insertSelective(ProBusinessInfo record);
|
||||
|
||||
List<ProBusinessInfo> selectByExample(ProBusinessInfoExample example);
|
||||
|
||||
ProBusinessInfo selectByPrimaryKey(String id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") ProBusinessInfo record, @Param("example") ProBusinessInfoExample example);
|
||||
|
||||
int updateByExample(@Param("record") ProBusinessInfo record, @Param("example") ProBusinessInfoExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(ProBusinessInfo record);
|
||||
|
||||
int updateByPrimaryKey(ProBusinessInfo record);
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.sztzjy.fund_investment.service;
|
||||
|
||||
import com.sztzjy.fund_investment.entity.EduProjectValuation;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ISysProjectValuationService {
|
||||
List<EduProjectValuation> getPE(String flowId);
|
||||
List<EduProjectValuation> getPB(String flowId);
|
||||
List<EduProjectValuation> getPS(String flowId);
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package com.sztzjy.fund_investment.service.serviceImpl;
|
||||
|
||||
import com.sztzjy.fund_investment.entity.EduProjectValuation;
|
||||
import com.sztzjy.fund_investment.entity.EduProjectValuationExample;
|
||||
import com.sztzjy.fund_investment.mapper.EduProjectValuationMapper;
|
||||
import com.sztzjy.fund_investment.mapper.FoundProjectMapper;
|
||||
import com.sztzjy.fund_investment.service.ISysProjectValuationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class SysProjectValuationServiceImpl implements ISysProjectValuationService {
|
||||
@Autowired
|
||||
FoundProjectMapper foundProjectMapper;
|
||||
@Autowired
|
||||
EduProjectValuationMapper projectValuationMapper;
|
||||
|
||||
@Override
|
||||
public List<EduProjectValuation> getPE(String flowId) {
|
||||
String projectPoolId = foundProjectMapper.selectByPrimaryKey(flowId).getProjectPoolId();
|
||||
EduProjectValuationExample example = new EduProjectValuationExample();
|
||||
EduProjectValuationExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andProjectPoolIdEqualTo(projectPoolId).andMethodIdEqualTo(1);
|
||||
List<EduProjectValuation> projectValuationList = projectValuationMapper.selectByExample(example);
|
||||
return projectValuationList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EduProjectValuation> getPB(String flowId) {
|
||||
String projectPoolId = foundProjectMapper.selectByPrimaryKey(flowId).getProjectPoolId();
|
||||
EduProjectValuationExample example = new EduProjectValuationExample();
|
||||
EduProjectValuationExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andProjectPoolIdEqualTo(projectPoolId).andMethodIdEqualTo(2);
|
||||
List<EduProjectValuation> projectValuationList = projectValuationMapper.selectByExample(example);
|
||||
return projectValuationList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<EduProjectValuation> getPS(String flowId) {
|
||||
String projectPoolId = foundProjectMapper.selectByPrimaryKey(flowId).getProjectPoolId();
|
||||
EduProjectValuationExample example = new EduProjectValuationExample();
|
||||
EduProjectValuationExample.Criteria criteria = example.createCriteria();
|
||||
criteria.andProjectPoolIdEqualTo(projectPoolId).andMethodIdEqualTo(3);
|
||||
List<EduProjectValuation> projectValuationList = projectValuationMapper.selectByExample(example);
|
||||
return projectValuationList;
|
||||
}
|
||||
}
|
@ -0,0 +1,193 @@
|
||||
package com.sztzjy.fund_investment.util.pdfUtils;
|
||||
|
||||
import com.itextpdf.text.*;
|
||||
import com.itextpdf.text.Font;
|
||||
import com.itextpdf.text.Image;
|
||||
import com.itextpdf.text.Rectangle;
|
||||
import com.itextpdf.text.pdf.*;
|
||||
import lombok.SneakyThrows;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.awt.*;
|
||||
|
||||
@Component
|
||||
public class HeaderAndFooterEvent extends PdfPageEventHelper {
|
||||
public static PdfTemplate tpl = null;
|
||||
public static boolean PAGE_NUMBER = false;
|
||||
public static Rectangle rect = PageSize.A4;
|
||||
|
||||
private static Font font;
|
||||
|
||||
public static String HeaderFooterFontName = "黑体";
|
||||
public static int HeaderFooterFontSize = 10;
|
||||
public static Color HeaderFooterFontColor = Color.BLACK;
|
||||
|
||||
public static String HeaderLeft;
|
||||
public static String HeaderRight;
|
||||
public static String FooterLeft;
|
||||
public static String FooterRight;
|
||||
|
||||
public static void SetPageSize(String type) {
|
||||
switch (type.trim()) {
|
||||
case "A4":
|
||||
rect = PageSize.A4;
|
||||
break;
|
||||
case "A8":
|
||||
rect = PageSize.A8;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@SneakyThrows
|
||||
public static void SetFont(BaseColor color, String fontName, float size, int style) {
|
||||
BaseFont baseFont;
|
||||
String FONT_PATH="C:/Windows/Fonts/";
|
||||
switch (fontName) {
|
||||
case "黑体":
|
||||
// baseFont = BaseFont.createFont("SIMHEI.TTF", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
|
||||
baseFont = BaseFont.createFont(FONT_PATH+"simhei.ttf", BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
|
||||
break;
|
||||
case "华文中宋":
|
||||
// baseFont = BaseFont.createFont("STZHONGS.TTF", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
|
||||
baseFont = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);
|
||||
break;
|
||||
case "宋体":
|
||||
// baseFont = BaseFont.createFont("SIMYOU.TTF", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
|
||||
baseFont = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);
|
||||
break;
|
||||
default:
|
||||
// baseFont = BaseFont.createFont("SIMYOU.TTF", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
|
||||
baseFont = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);
|
||||
break;
|
||||
}
|
||||
font = new Font(baseFont, size, style,color);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onEndPage(PdfWriter writer, Document document) {
|
||||
if (PAGE_NUMBER) {
|
||||
Font HeaderFooterFont = new Font(font.getBaseFont(), HeaderFooterFontSize, Font.NORMAL);
|
||||
Phrase header_left = new Phrase(HeaderLeft, HeaderFooterFont);
|
||||
Phrase header_right = new Phrase(HeaderRight, HeaderFooterFont);
|
||||
|
||||
Phrase footer_left = new Phrase(FooterLeft, HeaderFooterFont);
|
||||
Phrase footer_center = new Phrase("第" + (writer.getPageNumber()) + "页/共 页", HeaderFooterFont);
|
||||
Phrase footer_right = new Phrase(FooterRight, HeaderFooterFont);
|
||||
|
||||
PdfContentByte cb = writer.getDirectContent();
|
||||
cb.addTemplate(tpl, document.right() - 290 + document.leftMargin(), document.bottom() - 15);
|
||||
|
||||
ColumnText.showTextAligned(cb, Element.ALIGN_CENTER, header_right,
|
||||
document.right() - 50 + document.leftMargin(), document.top() + 15, 0);
|
||||
|
||||
ColumnText.showTextAligned(cb, Element.ALIGN_CENTER, header_left,
|
||||
document.right() - 500 + document.leftMargin(), document.top() + 15, 0);
|
||||
|
||||
ColumnText.showTextAligned(cb, Element.ALIGN_CENTER, footer_left,
|
||||
document.right() - 535 + document.leftMargin(), document.bottom() - 15, 0);
|
||||
|
||||
ColumnText.showTextAligned(cb, Element.ALIGN_CENTER, footer_center,
|
||||
document.right() - 300 + document.leftMargin(), document.bottom() - 15, 0);
|
||||
|
||||
ColumnText.showTextAligned(cb, Element.ALIGN_CENTER, footer_right,
|
||||
document.right() - 80 + document.leftMargin(), document.bottom() - 15, 0);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStartPage(PdfWriter writer, Document document) {
|
||||
if (PAGE_NUMBER) {
|
||||
writer.setPageCount(writer.getPageNumber());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCloseDocument(PdfWriter writer, Document document) {
|
||||
tpl.beginText();
|
||||
tpl.setFontAndSize(font.getBaseFont(), HeaderFooterFontSize);
|
||||
tpl.showText(String.valueOf(writer.getPageNumber()));
|
||||
tpl.endText();
|
||||
tpl.closePath();
|
||||
}
|
||||
|
||||
public static Paragraph AddParagraph(String content, int Alignment, float SpacingAfter, float SpacingBefore, float MultipliedLeading) {
|
||||
Paragraph pra = new Paragraph(content, font);
|
||||
pra.setAlignment(Alignment);
|
||||
pra.setSpacingAfter(SpacingAfter);
|
||||
pra.setSpacingBefore(SpacingBefore);
|
||||
// pra.setMultipliedLeading(MultipliedLeading);
|
||||
return pra;
|
||||
}
|
||||
|
||||
public static Paragraph AddParagraph(String content, int Alignment, float MultipliedLeading) {
|
||||
Paragraph pra = new Paragraph(content, font);
|
||||
pra.setAlignment(Alignment);
|
||||
// pra.setMultipliedLeading(MultipliedLeading);
|
||||
return pra;
|
||||
}
|
||||
|
||||
public static Paragraph AddParagraph(String content, int Alignment) {
|
||||
Paragraph pra = new Paragraph(content, font);
|
||||
pra.setAlignment(Alignment);
|
||||
return pra;
|
||||
}
|
||||
|
||||
public static Paragraph AddParagraph(String content) {
|
||||
Paragraph pra = new Paragraph(content, font);
|
||||
return pra;
|
||||
}
|
||||
|
||||
public static PdfPCell AddCell(String content, int horizontalAlignment, int verticalAlignment, float borderWidth) {
|
||||
PdfPCell cell = new PdfPCell(new Phrase(content, font));
|
||||
cell.setHorizontalAlignment(horizontalAlignment);
|
||||
cell.setVerticalAlignment(verticalAlignment);
|
||||
cell.setBorderWidth(borderWidth);
|
||||
return cell;
|
||||
}
|
||||
|
||||
public static PdfPCell AddCell(String content, int horizontalAlignment, int verticalAlignment) {
|
||||
PdfPCell cell = new PdfPCell(new Phrase(content, font));
|
||||
cell.setHorizontalAlignment(horizontalAlignment);
|
||||
cell.setVerticalAlignment(verticalAlignment);
|
||||
return cell;
|
||||
}
|
||||
|
||||
public static PdfPCell AddCell(String content, int horizontalAlignment) {
|
||||
PdfPCell cell = new PdfPCell(new Phrase(content, font));
|
||||
cell.setHorizontalAlignment(horizontalAlignment);
|
||||
return cell;
|
||||
}
|
||||
|
||||
public static PdfPCell AddCell(String content) {
|
||||
PdfPCell cell = new PdfPCell(new Phrase(content, font));
|
||||
return cell;
|
||||
}
|
||||
|
||||
public static PdfPCell AddCell(Image image, int horizontalAlignment, int verticalAlignment, float borderWidth) {
|
||||
PdfPCell cell = new PdfPCell(image);
|
||||
cell.setHorizontalAlignment(horizontalAlignment);
|
||||
cell.setVerticalAlignment(verticalAlignment);
|
||||
cell.setBorderWidth(borderWidth);
|
||||
return cell;
|
||||
}
|
||||
|
||||
public static PdfPCell AddCell(Image image, int horizontalAlignment, int verticalAlignment) {
|
||||
PdfPCell cell = new PdfPCell(image);
|
||||
cell.setHorizontalAlignment(horizontalAlignment);
|
||||
cell.setVerticalAlignment(verticalAlignment);
|
||||
return cell;
|
||||
}
|
||||
|
||||
public static PdfPCell AddCell(Image image, int horizontalAlignment) {
|
||||
PdfPCell cell = new PdfPCell(image);
|
||||
cell.setHorizontalAlignment(horizontalAlignment);
|
||||
return cell;
|
||||
}
|
||||
|
||||
public static PdfPCell AddCell(Image image) {
|
||||
PdfPCell cell = new PdfPCell(image);
|
||||
return cell;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,164 @@
|
||||
<?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.EduCompanyMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.EduCompany">
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
</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">
|
||||
id, name
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.EduCompanyExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from edu_company
|
||||
<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 edu_company
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from edu_company
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.EduCompanyExample">
|
||||
delete from edu_company
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.EduCompany">
|
||||
insert into edu_company (id, name)
|
||||
values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.EduCompany">
|
||||
insert into edu_company
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.EduCompanyExample" resultType="java.lang.Long">
|
||||
select count(*) from edu_company
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update edu_company
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.name != null">
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update edu_company
|
||||
set id = #{record.id,jdbcType=VARCHAR},
|
||||
name = #{record.name,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.EduCompany">
|
||||
update edu_company
|
||||
<set>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.EduCompany">
|
||||
update edu_company
|
||||
set name = #{name,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,401 @@
|
||||
<?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.EduProjectValuationMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.EduProjectValuation">
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="companyId" jdbcType="VARCHAR" property="companyid" />
|
||||
<result column="project_pool_id" jdbcType="VARCHAR" property="projectPoolId" />
|
||||
<result column="market_price" jdbcType="DECIMAL" property="marketPrice" />
|
||||
<result column="earnings" jdbcType="DECIMAL" property="earnings" />
|
||||
<result column="earnings1" jdbcType="DECIMAL" property="earnings1" />
|
||||
<result column="growth_rate" jdbcType="DECIMAL" property="growthRate" />
|
||||
<result column="growth_rate1" jdbcType="DECIMAL" property="growthRate1" />
|
||||
<result column="net_worth" jdbcType="DECIMAL" property="netWorth" />
|
||||
<result column="net_worth1" jdbcType="DECIMAL" property="netWorth1" />
|
||||
<result column="net_interest" jdbcType="DECIMAL" property="netInterest" />
|
||||
<result column="net_interest1" jdbcType="DECIMAL" property="netInterest1" />
|
||||
<result column="operating_income" jdbcType="DECIMAL" property="operatingIncome" />
|
||||
<result column="operating_income1" jdbcType="DECIMAL" property="operatingIncome1" />
|
||||
<result column="net_operatinginterest_rate" jdbcType="DECIMAL" property="netOperatinginterestRate" />
|
||||
<result column="net_operatinginterest_rate1" jdbcType="DECIMAL" property="netOperatinginterestRate1" />
|
||||
<result column="method_id" jdbcType="INTEGER" property="methodId" />
|
||||
</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">
|
||||
id, companyId, project_pool_id, market_price, earnings, earnings1, growth_rate, growth_rate1,
|
||||
net_worth, net_worth1, net_interest, net_interest1, operating_income, operating_income1,
|
||||
net_operatinginterest_rate, net_operatinginterest_rate1, method_id
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.EduProjectValuationExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from edu_project_valuation
|
||||
<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 edu_project_valuation
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from edu_project_valuation
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.EduProjectValuationExample">
|
||||
delete from edu_project_valuation
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.EduProjectValuation">
|
||||
insert into edu_project_valuation (id, companyId, project_pool_id,
|
||||
market_price, earnings, earnings1,
|
||||
growth_rate, growth_rate1, net_worth,
|
||||
net_worth1, net_interest, net_interest1,
|
||||
operating_income, operating_income1, net_operatinginterest_rate,
|
||||
net_operatinginterest_rate1, method_id)
|
||||
values (#{id,jdbcType=VARCHAR}, #{companyid,jdbcType=VARCHAR}, #{projectPoolId,jdbcType=VARCHAR},
|
||||
#{marketPrice,jdbcType=DECIMAL}, #{earnings,jdbcType=DECIMAL}, #{earnings1,jdbcType=DECIMAL},
|
||||
#{growthRate,jdbcType=DECIMAL}, #{growthRate1,jdbcType=DECIMAL}, #{netWorth,jdbcType=DECIMAL},
|
||||
#{netWorth1,jdbcType=DECIMAL}, #{netInterest,jdbcType=DECIMAL}, #{netInterest1,jdbcType=DECIMAL},
|
||||
#{operatingIncome,jdbcType=DECIMAL}, #{operatingIncome1,jdbcType=DECIMAL}, #{netOperatinginterestRate,jdbcType=DECIMAL},
|
||||
#{netOperatinginterestRate1,jdbcType=DECIMAL}, #{methodId,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.EduProjectValuation">
|
||||
insert into edu_project_valuation
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="companyid != null">
|
||||
companyId,
|
||||
</if>
|
||||
<if test="projectPoolId != null">
|
||||
project_pool_id,
|
||||
</if>
|
||||
<if test="marketPrice != null">
|
||||
market_price,
|
||||
</if>
|
||||
<if test="earnings != null">
|
||||
earnings,
|
||||
</if>
|
||||
<if test="earnings1 != null">
|
||||
earnings1,
|
||||
</if>
|
||||
<if test="growthRate != null">
|
||||
growth_rate,
|
||||
</if>
|
||||
<if test="growthRate1 != null">
|
||||
growth_rate1,
|
||||
</if>
|
||||
<if test="netWorth != null">
|
||||
net_worth,
|
||||
</if>
|
||||
<if test="netWorth1 != null">
|
||||
net_worth1,
|
||||
</if>
|
||||
<if test="netInterest != null">
|
||||
net_interest,
|
||||
</if>
|
||||
<if test="netInterest1 != null">
|
||||
net_interest1,
|
||||
</if>
|
||||
<if test="operatingIncome != null">
|
||||
operating_income,
|
||||
</if>
|
||||
<if test="operatingIncome1 != null">
|
||||
operating_income1,
|
||||
</if>
|
||||
<if test="netOperatinginterestRate != null">
|
||||
net_operatinginterest_rate,
|
||||
</if>
|
||||
<if test="netOperatinginterestRate1 != null">
|
||||
net_operatinginterest_rate1,
|
||||
</if>
|
||||
<if test="methodId != null">
|
||||
method_id,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyid != null">
|
||||
#{companyid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectPoolId != null">
|
||||
#{projectPoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="marketPrice != null">
|
||||
#{marketPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="earnings != null">
|
||||
#{earnings,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="earnings1 != null">
|
||||
#{earnings1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="growthRate != null">
|
||||
#{growthRate,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="growthRate1 != null">
|
||||
#{growthRate1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netWorth != null">
|
||||
#{netWorth,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netWorth1 != null">
|
||||
#{netWorth1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netInterest != null">
|
||||
#{netInterest,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netInterest1 != null">
|
||||
#{netInterest1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="operatingIncome != null">
|
||||
#{operatingIncome,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="operatingIncome1 != null">
|
||||
#{operatingIncome1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netOperatinginterestRate != null">
|
||||
#{netOperatinginterestRate,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netOperatinginterestRate1 != null">
|
||||
#{netOperatinginterestRate1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="methodId != null">
|
||||
#{methodId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.EduProjectValuationExample" resultType="java.lang.Long">
|
||||
select count(*) from edu_project_valuation
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update edu_project_valuation
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.companyid != null">
|
||||
companyId = #{record.companyid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.projectPoolId != null">
|
||||
project_pool_id = #{record.projectPoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.marketPrice != null">
|
||||
market_price = #{record.marketPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.earnings != null">
|
||||
earnings = #{record.earnings,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.earnings1 != null">
|
||||
earnings1 = #{record.earnings1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.growthRate != null">
|
||||
growth_rate = #{record.growthRate,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.growthRate1 != null">
|
||||
growth_rate1 = #{record.growthRate1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.netWorth != null">
|
||||
net_worth = #{record.netWorth,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.netWorth1 != null">
|
||||
net_worth1 = #{record.netWorth1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.netInterest != null">
|
||||
net_interest = #{record.netInterest,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.netInterest1 != null">
|
||||
net_interest1 = #{record.netInterest1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.operatingIncome != null">
|
||||
operating_income = #{record.operatingIncome,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.operatingIncome1 != null">
|
||||
operating_income1 = #{record.operatingIncome1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.netOperatinginterestRate != null">
|
||||
net_operatinginterest_rate = #{record.netOperatinginterestRate,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.netOperatinginterestRate1 != null">
|
||||
net_operatinginterest_rate1 = #{record.netOperatinginterestRate1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.methodId != null">
|
||||
method_id = #{record.methodId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update edu_project_valuation
|
||||
set id = #{record.id,jdbcType=VARCHAR},
|
||||
companyId = #{record.companyid,jdbcType=VARCHAR},
|
||||
project_pool_id = #{record.projectPoolId,jdbcType=VARCHAR},
|
||||
market_price = #{record.marketPrice,jdbcType=DECIMAL},
|
||||
earnings = #{record.earnings,jdbcType=DECIMAL},
|
||||
earnings1 = #{record.earnings1,jdbcType=DECIMAL},
|
||||
growth_rate = #{record.growthRate,jdbcType=DECIMAL},
|
||||
growth_rate1 = #{record.growthRate1,jdbcType=DECIMAL},
|
||||
net_worth = #{record.netWorth,jdbcType=DECIMAL},
|
||||
net_worth1 = #{record.netWorth1,jdbcType=DECIMAL},
|
||||
net_interest = #{record.netInterest,jdbcType=DECIMAL},
|
||||
net_interest1 = #{record.netInterest1,jdbcType=DECIMAL},
|
||||
operating_income = #{record.operatingIncome,jdbcType=DECIMAL},
|
||||
operating_income1 = #{record.operatingIncome1,jdbcType=DECIMAL},
|
||||
net_operatinginterest_rate = #{record.netOperatinginterestRate,jdbcType=DECIMAL},
|
||||
net_operatinginterest_rate1 = #{record.netOperatinginterestRate1,jdbcType=DECIMAL},
|
||||
method_id = #{record.methodId,jdbcType=INTEGER}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.EduProjectValuation">
|
||||
update edu_project_valuation
|
||||
<set>
|
||||
<if test="companyid != null">
|
||||
companyId = #{companyid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectPoolId != null">
|
||||
project_pool_id = #{projectPoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="marketPrice != null">
|
||||
market_price = #{marketPrice,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="earnings != null">
|
||||
earnings = #{earnings,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="earnings1 != null">
|
||||
earnings1 = #{earnings1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="growthRate != null">
|
||||
growth_rate = #{growthRate,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="growthRate1 != null">
|
||||
growth_rate1 = #{growthRate1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netWorth != null">
|
||||
net_worth = #{netWorth,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netWorth1 != null">
|
||||
net_worth1 = #{netWorth1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netInterest != null">
|
||||
net_interest = #{netInterest,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netInterest1 != null">
|
||||
net_interest1 = #{netInterest1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="operatingIncome != null">
|
||||
operating_income = #{operatingIncome,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="operatingIncome1 != null">
|
||||
operating_income1 = #{operatingIncome1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netOperatinginterestRate != null">
|
||||
net_operatinginterest_rate = #{netOperatinginterestRate,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="netOperatinginterestRate1 != null">
|
||||
net_operatinginterest_rate1 = #{netOperatinginterestRate1,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="methodId != null">
|
||||
method_id = #{methodId,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.EduProjectValuation">
|
||||
update edu_project_valuation
|
||||
set companyId = #{companyid,jdbcType=VARCHAR},
|
||||
project_pool_id = #{projectPoolId,jdbcType=VARCHAR},
|
||||
market_price = #{marketPrice,jdbcType=DECIMAL},
|
||||
earnings = #{earnings,jdbcType=DECIMAL},
|
||||
earnings1 = #{earnings1,jdbcType=DECIMAL},
|
||||
growth_rate = #{growthRate,jdbcType=DECIMAL},
|
||||
growth_rate1 = #{growthRate1,jdbcType=DECIMAL},
|
||||
net_worth = #{netWorth,jdbcType=DECIMAL},
|
||||
net_worth1 = #{netWorth1,jdbcType=DECIMAL},
|
||||
net_interest = #{netInterest,jdbcType=DECIMAL},
|
||||
net_interest1 = #{netInterest1,jdbcType=DECIMAL},
|
||||
operating_income = #{operatingIncome,jdbcType=DECIMAL},
|
||||
operating_income1 = #{operatingIncome1,jdbcType=DECIMAL},
|
||||
net_operatinginterest_rate = #{netOperatinginterestRate,jdbcType=DECIMAL},
|
||||
net_operatinginterest_rate1 = #{netOperatinginterestRate1,jdbcType=DECIMAL},
|
||||
method_id = #{methodId,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,434 @@
|
||||
<?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.ProBusinessInfoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.ProBusinessInfo">
|
||||
<id column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="project_pool_id" jdbcType="VARCHAR" property="projectPoolId" />
|
||||
<result column="registered_capital" jdbcType="VARCHAR" property="registeredCapital" />
|
||||
<result column="operating_state" jdbcType="VARCHAR" property="operatingState" />
|
||||
<result column="credit_code" jdbcType="VARCHAR" property="creditCode" />
|
||||
<result column="identification_number" jdbcType="VARCHAR" property="identificationNumber" />
|
||||
<result column="business_term" jdbcType="VARCHAR" property="businessTerm" />
|
||||
<result column="paidIn_capital" jdbcType="VARCHAR" property="paidinCapital" />
|
||||
<result column="insurance_num" jdbcType="VARCHAR" property="insuranceNum" />
|
||||
<result column="create_date" jdbcType="VARCHAR" property="createDate" />
|
||||
<result column="registration_num" jdbcType="VARCHAR" property="registrationNum" />
|
||||
<result column="orga_stru_code" jdbcType="VARCHAR" property="orgaStruCode" />
|
||||
<result column="company_type" jdbcType="VARCHAR" property="companyType" />
|
||||
<result column="industry" jdbcType="VARCHAR" property="industry" />
|
||||
<result column="approval_date" jdbcType="VARCHAR" property="approvalDate" />
|
||||
<result column="staff_size" jdbcType="VARCHAR" property="staffSize" />
|
||||
<result column="registrar" jdbcType="VARCHAR" property="registrar" />
|
||||
<result column="registered_address" jdbcType="VARCHAR" property="registeredAddress" />
|
||||
<result column="business_scope" jdbcType="VARCHAR" property="businessScope" />
|
||||
</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">
|
||||
id, project_pool_id, registered_capital, operating_state, credit_code, identification_number,
|
||||
business_term, paidIn_capital, insurance_num, create_date, registration_num, orga_stru_code,
|
||||
company_type, industry, approval_date, staff_size, registrar, registered_address,
|
||||
business_scope
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.ProBusinessInfoExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from pro_business_info
|
||||
<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 pro_business_info
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from pro_business_info
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.ProBusinessInfoExample">
|
||||
delete from pro_business_info
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.ProBusinessInfo">
|
||||
insert into pro_business_info (id, project_pool_id, registered_capital,
|
||||
operating_state, credit_code, identification_number,
|
||||
business_term, paidIn_capital, insurance_num,
|
||||
create_date, registration_num, orga_stru_code,
|
||||
company_type, industry, approval_date,
|
||||
staff_size, registrar, registered_address,
|
||||
business_scope)
|
||||
values (#{id,jdbcType=VARCHAR}, #{projectPoolId,jdbcType=VARCHAR}, #{registeredCapital,jdbcType=VARCHAR},
|
||||
#{operatingState,jdbcType=VARCHAR}, #{creditCode,jdbcType=VARCHAR}, #{identificationNumber,jdbcType=VARCHAR},
|
||||
#{businessTerm,jdbcType=VARCHAR}, #{paidinCapital,jdbcType=VARCHAR}, #{insuranceNum,jdbcType=VARCHAR},
|
||||
#{createDate,jdbcType=VARCHAR}, #{registrationNum,jdbcType=VARCHAR}, #{orgaStruCode,jdbcType=VARCHAR},
|
||||
#{companyType,jdbcType=VARCHAR}, #{industry,jdbcType=VARCHAR}, #{approvalDate,jdbcType=VARCHAR},
|
||||
#{staffSize,jdbcType=VARCHAR}, #{registrar,jdbcType=VARCHAR}, #{registeredAddress,jdbcType=VARCHAR},
|
||||
#{businessScope,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.ProBusinessInfo">
|
||||
insert into pro_business_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="projectPoolId != null">
|
||||
project_pool_id,
|
||||
</if>
|
||||
<if test="registeredCapital != null">
|
||||
registered_capital,
|
||||
</if>
|
||||
<if test="operatingState != null">
|
||||
operating_state,
|
||||
</if>
|
||||
<if test="creditCode != null">
|
||||
credit_code,
|
||||
</if>
|
||||
<if test="identificationNumber != null">
|
||||
identification_number,
|
||||
</if>
|
||||
<if test="businessTerm != null">
|
||||
business_term,
|
||||
</if>
|
||||
<if test="paidinCapital != null">
|
||||
paidIn_capital,
|
||||
</if>
|
||||
<if test="insuranceNum != null">
|
||||
insurance_num,
|
||||
</if>
|
||||
<if test="createDate != null">
|
||||
create_date,
|
||||
</if>
|
||||
<if test="registrationNum != null">
|
||||
registration_num,
|
||||
</if>
|
||||
<if test="orgaStruCode != null">
|
||||
orga_stru_code,
|
||||
</if>
|
||||
<if test="companyType != null">
|
||||
company_type,
|
||||
</if>
|
||||
<if test="industry != null">
|
||||
industry,
|
||||
</if>
|
||||
<if test="approvalDate != null">
|
||||
approval_date,
|
||||
</if>
|
||||
<if test="staffSize != null">
|
||||
staff_size,
|
||||
</if>
|
||||
<if test="registrar != null">
|
||||
registrar,
|
||||
</if>
|
||||
<if test="registeredAddress != null">
|
||||
registered_address,
|
||||
</if>
|
||||
<if test="businessScope != null">
|
||||
business_scope,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectPoolId != null">
|
||||
#{projectPoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registeredCapital != null">
|
||||
#{registeredCapital,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="operatingState != null">
|
||||
#{operatingState,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="creditCode != null">
|
||||
#{creditCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="identificationNumber != null">
|
||||
#{identificationNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessTerm != null">
|
||||
#{businessTerm,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paidinCapital != null">
|
||||
#{paidinCapital,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuranceNum != null">
|
||||
#{insuranceNum,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createDate != null">
|
||||
#{createDate,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registrationNum != null">
|
||||
#{registrationNum,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orgaStruCode != null">
|
||||
#{orgaStruCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyType != null">
|
||||
#{companyType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="industry != null">
|
||||
#{industry,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="approvalDate != null">
|
||||
#{approvalDate,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="staffSize != null">
|
||||
#{staffSize,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registrar != null">
|
||||
#{registrar,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registeredAddress != null">
|
||||
#{registeredAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessScope != null">
|
||||
#{businessScope,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.ProBusinessInfoExample" resultType="java.lang.Long">
|
||||
select count(*) from pro_business_info
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update pro_business_info
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.projectPoolId != null">
|
||||
project_pool_id = #{record.projectPoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.registeredCapital != null">
|
||||
registered_capital = #{record.registeredCapital,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.operatingState != null">
|
||||
operating_state = #{record.operatingState,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.creditCode != null">
|
||||
credit_code = #{record.creditCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.identificationNumber != null">
|
||||
identification_number = #{record.identificationNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.businessTerm != null">
|
||||
business_term = #{record.businessTerm,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.paidinCapital != null">
|
||||
paidIn_capital = #{record.paidinCapital,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.insuranceNum != null">
|
||||
insurance_num = #{record.insuranceNum,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.createDate != null">
|
||||
create_date = #{record.createDate,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.registrationNum != null">
|
||||
registration_num = #{record.registrationNum,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.orgaStruCode != null">
|
||||
orga_stru_code = #{record.orgaStruCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.companyType != null">
|
||||
company_type = #{record.companyType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.industry != null">
|
||||
industry = #{record.industry,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.approvalDate != null">
|
||||
approval_date = #{record.approvalDate,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.staffSize != null">
|
||||
staff_size = #{record.staffSize,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.registrar != null">
|
||||
registrar = #{record.registrar,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.registeredAddress != null">
|
||||
registered_address = #{record.registeredAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.businessScope != null">
|
||||
business_scope = #{record.businessScope,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update pro_business_info
|
||||
set id = #{record.id,jdbcType=VARCHAR},
|
||||
project_pool_id = #{record.projectPoolId,jdbcType=VARCHAR},
|
||||
registered_capital = #{record.registeredCapital,jdbcType=VARCHAR},
|
||||
operating_state = #{record.operatingState,jdbcType=VARCHAR},
|
||||
credit_code = #{record.creditCode,jdbcType=VARCHAR},
|
||||
identification_number = #{record.identificationNumber,jdbcType=VARCHAR},
|
||||
business_term = #{record.businessTerm,jdbcType=VARCHAR},
|
||||
paidIn_capital = #{record.paidinCapital,jdbcType=VARCHAR},
|
||||
insurance_num = #{record.insuranceNum,jdbcType=VARCHAR},
|
||||
create_date = #{record.createDate,jdbcType=VARCHAR},
|
||||
registration_num = #{record.registrationNum,jdbcType=VARCHAR},
|
||||
orga_stru_code = #{record.orgaStruCode,jdbcType=VARCHAR},
|
||||
company_type = #{record.companyType,jdbcType=VARCHAR},
|
||||
industry = #{record.industry,jdbcType=VARCHAR},
|
||||
approval_date = #{record.approvalDate,jdbcType=VARCHAR},
|
||||
staff_size = #{record.staffSize,jdbcType=VARCHAR},
|
||||
registrar = #{record.registrar,jdbcType=VARCHAR},
|
||||
registered_address = #{record.registeredAddress,jdbcType=VARCHAR},
|
||||
business_scope = #{record.businessScope,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.ProBusinessInfo">
|
||||
update pro_business_info
|
||||
<set>
|
||||
<if test="projectPoolId != null">
|
||||
project_pool_id = #{projectPoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registeredCapital != null">
|
||||
registered_capital = #{registeredCapital,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="operatingState != null">
|
||||
operating_state = #{operatingState,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="creditCode != null">
|
||||
credit_code = #{creditCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="identificationNumber != null">
|
||||
identification_number = #{identificationNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessTerm != null">
|
||||
business_term = #{businessTerm,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="paidinCapital != null">
|
||||
paidIn_capital = #{paidinCapital,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="insuranceNum != null">
|
||||
insurance_num = #{insuranceNum,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createDate != null">
|
||||
create_date = #{createDate,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registrationNum != null">
|
||||
registration_num = #{registrationNum,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orgaStruCode != null">
|
||||
orga_stru_code = #{orgaStruCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="companyType != null">
|
||||
company_type = #{companyType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="industry != null">
|
||||
industry = #{industry,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="approvalDate != null">
|
||||
approval_date = #{approvalDate,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="staffSize != null">
|
||||
staff_size = #{staffSize,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registrar != null">
|
||||
registrar = #{registrar,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="registeredAddress != null">
|
||||
registered_address = #{registeredAddress,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="businessScope != null">
|
||||
business_scope = #{businessScope,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.ProBusinessInfo">
|
||||
update pro_business_info
|
||||
set project_pool_id = #{projectPoolId,jdbcType=VARCHAR},
|
||||
registered_capital = #{registeredCapital,jdbcType=VARCHAR},
|
||||
operating_state = #{operatingState,jdbcType=VARCHAR},
|
||||
credit_code = #{creditCode,jdbcType=VARCHAR},
|
||||
identification_number = #{identificationNumber,jdbcType=VARCHAR},
|
||||
business_term = #{businessTerm,jdbcType=VARCHAR},
|
||||
paidIn_capital = #{paidinCapital,jdbcType=VARCHAR},
|
||||
insurance_num = #{insuranceNum,jdbcType=VARCHAR},
|
||||
create_date = #{createDate,jdbcType=VARCHAR},
|
||||
registration_num = #{registrationNum,jdbcType=VARCHAR},
|
||||
orga_stru_code = #{orgaStruCode,jdbcType=VARCHAR},
|
||||
company_type = #{companyType,jdbcType=VARCHAR},
|
||||
industry = #{industry,jdbcType=VARCHAR},
|
||||
approval_date = #{approvalDate,jdbcType=VARCHAR},
|
||||
staff_size = #{staffSize,jdbcType=VARCHAR},
|
||||
registrar = #{registrar,jdbcType=VARCHAR},
|
||||
registered_address = #{registeredAddress,jdbcType=VARCHAR},
|
||||
business_scope = #{businessScope,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue