Commit c6e1f72f authored by zp's avatar zp

初始化

parent c079d52f
......@@ -15,6 +15,8 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;
@Api(tags = "产品服务")
......@@ -129,6 +131,19 @@ public interface ProductApi {
@ApiOperation(value = "根据Id查询私有产品基本信息 - 私有基金")
@PostMapping(value = "/privateFundInfo/simpleList", produces = {"application/json"})
CommonResp<List<FundInfoSimpleListResp>> privateSimpleList(@RequestBody List<String> idList);
@ApiOperation("基金公司 - 私有基金")
@GetMapping("/private/fund/company")
CommonResp<FundCompanyVO> getPrivateFundCompanyInfo(@ApiParam("基金公司id") @RequestParam("id") String id);
@ApiOperation("基金经理 - 私有基金")
@GetMapping("/private/fund/manager")
CommonResp<List<FundManagerVO>> getPrivateFundManagerInfo(@ApiParam("产品id") @RequestParam("id") String id);
@ApiOperation("分红配送 - 私有基金")
@GetMapping("/private/bonus/ratio")
CommonResp<List<BonusRatioVO>> getPrivateBonusRatioInfo(@ApiParam("产品id") @RequestParam("id") String id);
//**********************************************************私有基金 end**********************************************************
@ApiOperation(value = "根据Id查询私募产品基本信息")
......
......@@ -10,12 +10,15 @@ import com.tanpu.common.model.product.resp.*;
import com.tanpu.common.resp.CommonResp;
import com.tanpu.fund.api.ProductApi;
import com.tanpu.fund.feign.publicfund.FeignClientForPublicfund;
import com.tanpu.fund.service.ProductPrivateService;
import com.tanpu.fund.service.ProductService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.util.List;
@RestController
......@@ -27,6 +30,9 @@ public class ProductController implements ProductApi {
@Resource
private FeignClientForPublicfund feignClientForPublicfund;
@Resource
private ProductPrivateService productPrivateService;
@Override
public CommonResp<Page<ProductInfoVO>> getProductInfo(ProductInfoReq req) {
return CommonResp.success(this.productService.getProductList(req));
......@@ -99,7 +105,7 @@ public class ProductController implements ProductApi {
@Override
public CommonResp<FundCompanyVO> getFundCompanyInfo(String id) {
return CommonResp.success(this.productService.getFundCompany(id));
return CommonResp.success(this.productPrivateService.getFundCompany(id));
}
@Override
......@@ -172,6 +178,22 @@ public class ProductController implements ProductApi {
return CommonResp.success(productService.getPrivateSimpleList(idList));
}
@Override
public CommonResp<FundCompanyVO> getPrivateFundCompanyInfo(String id) {
return CommonResp.success(this.productPrivateService.getFundCompany(id));
}
@Override
public CommonResp<List<BonusRatioVO>> getPrivateBonusRatioInfo(String id) {
return CommonResp.success(this.productPrivateService.getBonusRatio(id));
}
@Override
public CommonResp<List<FundManagerVO>> getPrivateFundManagerInfo(String id) {
return CommonResp.success(this.productPrivateService.getFundManager(id));
}
@Override
public CommonResp<List<FundIndexBasicResp>> fundIndexes() {
return feignClientForPublicfund.fundIndexes();
......
......@@ -7,6 +7,25 @@ import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
/**
* 公司基本信息表
*/
......
......@@ -6,6 +6,24 @@ import java.util.Date;
import java.util.Iterator;
import java.util.List;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
public class CompanyInfoExample {
protected String orderByClause;
......
package com.tanpu.fund.entity.generator;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
/**
* 公司管理资产及人员变动统计
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CompanyTnaPersonnel {
/**
* 主键ID
*/
private String id;
/**
* 公司id
*/
private String companyId;
/**
* 统计日期
*/
private Date statDate;
/**
* 信托管理总资产规模,<量纲:亿元>
*/
private BigDecimal trustFundAssetSize;
/**
* 专户管理总资产规模,<量纲:亿元>
*/
private BigDecimal specialAccountAssetSize;
/**
* 有限合伙管理总资产规模,<量纲:亿元>
*/
private BigDecimal ltdcoFundAssetSize;
/**
* 海外基金管理总资产规模,<量纲:亿元>
*/
private BigDecimal offshoreFundAssetSize;
/**
* 基金总数
*/
private Integer fundNum;
/**
* 公司人数
*/
private Integer staffNum;
/**
* 投研人员数
*/
private Integer analystNum;
/**
* 管理总资产规模,<量纲:亿元>
*/
private BigDecimal totalAssetSize;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private Integer deleteTag;
}
\ No newline at end of file
package com.tanpu.fund.entity.generator;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
public class CompanyTnaPersonnelExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public CompanyTnaPersonnelExample() {
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));
}
protected void addCriterionForJDBCDate(String condition, Date value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Date(value.getTime()), property);
}
protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
if (values == null || values.size() == 0) {
throw new RuntimeException("Value list for " + property + " cannot be null or empty");
}
List<java.sql.Date> dateList = new ArrayList<>();
Iterator<Date> iter = values.iterator();
while (iter.hasNext()) {
dateList.add(new java.sql.Date(iter.next().getTime()));
}
addCriterion(condition, dateList, property);
}
protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
}
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 andCompanyIdIsNull() {
addCriterion("company_id is null");
return (Criteria) this;
}
public Criteria andCompanyIdIsNotNull() {
addCriterion("company_id is not null");
return (Criteria) this;
}
public Criteria andCompanyIdEqualTo(String value) {
addCriterion("company_id =", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotEqualTo(String value) {
addCriterion("company_id <>", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdGreaterThan(String value) {
addCriterion("company_id >", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdGreaterThanOrEqualTo(String value) {
addCriterion("company_id >=", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdLessThan(String value) {
addCriterion("company_id <", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdLessThanOrEqualTo(String value) {
addCriterion("company_id <=", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdLike(String value) {
addCriterion("company_id like", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotLike(String value) {
addCriterion("company_id not like", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdIn(List<String> values) {
addCriterion("company_id in", values, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotIn(List<String> values) {
addCriterion("company_id not in", values, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdBetween(String value1, String value2) {
addCriterion("company_id between", value1, value2, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotBetween(String value1, String value2) {
addCriterion("company_id not between", value1, value2, "companyId");
return (Criteria) this;
}
public Criteria andStatDateIsNull() {
addCriterion("stat_date is null");
return (Criteria) this;
}
public Criteria andStatDateIsNotNull() {
addCriterion("stat_date is not null");
return (Criteria) this;
}
public Criteria andStatDateEqualTo(Date value) {
addCriterionForJDBCDate("stat_date =", value, "statDate");
return (Criteria) this;
}
public Criteria andStatDateNotEqualTo(Date value) {
addCriterionForJDBCDate("stat_date <>", value, "statDate");
return (Criteria) this;
}
public Criteria andStatDateGreaterThan(Date value) {
addCriterionForJDBCDate("stat_date >", value, "statDate");
return (Criteria) this;
}
public Criteria andStatDateGreaterThanOrEqualTo(Date value) {
addCriterionForJDBCDate("stat_date >=", value, "statDate");
return (Criteria) this;
}
public Criteria andStatDateLessThan(Date value) {
addCriterionForJDBCDate("stat_date <", value, "statDate");
return (Criteria) this;
}
public Criteria andStatDateLessThanOrEqualTo(Date value) {
addCriterionForJDBCDate("stat_date <=", value, "statDate");
return (Criteria) this;
}
public Criteria andStatDateIn(List<Date> values) {
addCriterionForJDBCDate("stat_date in", values, "statDate");
return (Criteria) this;
}
public Criteria andStatDateNotIn(List<Date> values) {
addCriterionForJDBCDate("stat_date not in", values, "statDate");
return (Criteria) this;
}
public Criteria andStatDateBetween(Date value1, Date value2) {
addCriterionForJDBCDate("stat_date between", value1, value2, "statDate");
return (Criteria) this;
}
public Criteria andStatDateNotBetween(Date value1, Date value2) {
addCriterionForJDBCDate("stat_date not between", value1, value2, "statDate");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeIsNull() {
addCriterion("trust_fund_asset_size is null");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeIsNotNull() {
addCriterion("trust_fund_asset_size is not null");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeEqualTo(BigDecimal value) {
addCriterion("trust_fund_asset_size =", value, "trustFundAssetSize");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeNotEqualTo(BigDecimal value) {
addCriterion("trust_fund_asset_size <>", value, "trustFundAssetSize");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeGreaterThan(BigDecimal value) {
addCriterion("trust_fund_asset_size >", value, "trustFundAssetSize");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("trust_fund_asset_size >=", value, "trustFundAssetSize");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeLessThan(BigDecimal value) {
addCriterion("trust_fund_asset_size <", value, "trustFundAssetSize");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeLessThanOrEqualTo(BigDecimal value) {
addCriterion("trust_fund_asset_size <=", value, "trustFundAssetSize");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeIn(List<BigDecimal> values) {
addCriterion("trust_fund_asset_size in", values, "trustFundAssetSize");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeNotIn(List<BigDecimal> values) {
addCriterion("trust_fund_asset_size not in", values, "trustFundAssetSize");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("trust_fund_asset_size between", value1, value2, "trustFundAssetSize");
return (Criteria) this;
}
public Criteria andTrustFundAssetSizeNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("trust_fund_asset_size not between", value1, value2, "trustFundAssetSize");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeIsNull() {
addCriterion("special_account_asset_size is null");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeIsNotNull() {
addCriterion("special_account_asset_size is not null");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeEqualTo(BigDecimal value) {
addCriterion("special_account_asset_size =", value, "specialAccountAssetSize");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeNotEqualTo(BigDecimal value) {
addCriterion("special_account_asset_size <>", value, "specialAccountAssetSize");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeGreaterThan(BigDecimal value) {
addCriterion("special_account_asset_size >", value, "specialAccountAssetSize");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("special_account_asset_size >=", value, "specialAccountAssetSize");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeLessThan(BigDecimal value) {
addCriterion("special_account_asset_size <", value, "specialAccountAssetSize");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeLessThanOrEqualTo(BigDecimal value) {
addCriterion("special_account_asset_size <=", value, "specialAccountAssetSize");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeIn(List<BigDecimal> values) {
addCriterion("special_account_asset_size in", values, "specialAccountAssetSize");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeNotIn(List<BigDecimal> values) {
addCriterion("special_account_asset_size not in", values, "specialAccountAssetSize");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("special_account_asset_size between", value1, value2, "specialAccountAssetSize");
return (Criteria) this;
}
public Criteria andSpecialAccountAssetSizeNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("special_account_asset_size not between", value1, value2, "specialAccountAssetSize");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeIsNull() {
addCriterion("ltdco_fund_asset_size is null");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeIsNotNull() {
addCriterion("ltdco_fund_asset_size is not null");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeEqualTo(BigDecimal value) {
addCriterion("ltdco_fund_asset_size =", value, "ltdcoFundAssetSize");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeNotEqualTo(BigDecimal value) {
addCriterion("ltdco_fund_asset_size <>", value, "ltdcoFundAssetSize");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeGreaterThan(BigDecimal value) {
addCriterion("ltdco_fund_asset_size >", value, "ltdcoFundAssetSize");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("ltdco_fund_asset_size >=", value, "ltdcoFundAssetSize");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeLessThan(BigDecimal value) {
addCriterion("ltdco_fund_asset_size <", value, "ltdcoFundAssetSize");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeLessThanOrEqualTo(BigDecimal value) {
addCriterion("ltdco_fund_asset_size <=", value, "ltdcoFundAssetSize");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeIn(List<BigDecimal> values) {
addCriterion("ltdco_fund_asset_size in", values, "ltdcoFundAssetSize");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeNotIn(List<BigDecimal> values) {
addCriterion("ltdco_fund_asset_size not in", values, "ltdcoFundAssetSize");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("ltdco_fund_asset_size between", value1, value2, "ltdcoFundAssetSize");
return (Criteria) this;
}
public Criteria andLtdcoFundAssetSizeNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("ltdco_fund_asset_size not between", value1, value2, "ltdcoFundAssetSize");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeIsNull() {
addCriterion("offshore_fund_asset_size is null");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeIsNotNull() {
addCriterion("offshore_fund_asset_size is not null");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeEqualTo(BigDecimal value) {
addCriterion("offshore_fund_asset_size =", value, "offshoreFundAssetSize");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeNotEqualTo(BigDecimal value) {
addCriterion("offshore_fund_asset_size <>", value, "offshoreFundAssetSize");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeGreaterThan(BigDecimal value) {
addCriterion("offshore_fund_asset_size >", value, "offshoreFundAssetSize");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("offshore_fund_asset_size >=", value, "offshoreFundAssetSize");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeLessThan(BigDecimal value) {
addCriterion("offshore_fund_asset_size <", value, "offshoreFundAssetSize");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeLessThanOrEqualTo(BigDecimal value) {
addCriterion("offshore_fund_asset_size <=", value, "offshoreFundAssetSize");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeIn(List<BigDecimal> values) {
addCriterion("offshore_fund_asset_size in", values, "offshoreFundAssetSize");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeNotIn(List<BigDecimal> values) {
addCriterion("offshore_fund_asset_size not in", values, "offshoreFundAssetSize");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("offshore_fund_asset_size between", value1, value2, "offshoreFundAssetSize");
return (Criteria) this;
}
public Criteria andOffshoreFundAssetSizeNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("offshore_fund_asset_size not between", value1, value2, "offshoreFundAssetSize");
return (Criteria) this;
}
public Criteria andFundNumIsNull() {
addCriterion("fund_num is null");
return (Criteria) this;
}
public Criteria andFundNumIsNotNull() {
addCriterion("fund_num is not null");
return (Criteria) this;
}
public Criteria andFundNumEqualTo(Integer value) {
addCriterion("fund_num =", value, "fundNum");
return (Criteria) this;
}
public Criteria andFundNumNotEqualTo(Integer value) {
addCriterion("fund_num <>", value, "fundNum");
return (Criteria) this;
}
public Criteria andFundNumGreaterThan(Integer value) {
addCriterion("fund_num >", value, "fundNum");
return (Criteria) this;
}
public Criteria andFundNumGreaterThanOrEqualTo(Integer value) {
addCriterion("fund_num >=", value, "fundNum");
return (Criteria) this;
}
public Criteria andFundNumLessThan(Integer value) {
addCriterion("fund_num <", value, "fundNum");
return (Criteria) this;
}
public Criteria andFundNumLessThanOrEqualTo(Integer value) {
addCriterion("fund_num <=", value, "fundNum");
return (Criteria) this;
}
public Criteria andFundNumIn(List<Integer> values) {
addCriterion("fund_num in", values, "fundNum");
return (Criteria) this;
}
public Criteria andFundNumNotIn(List<Integer> values) {
addCriterion("fund_num not in", values, "fundNum");
return (Criteria) this;
}
public Criteria andFundNumBetween(Integer value1, Integer value2) {
addCriterion("fund_num between", value1, value2, "fundNum");
return (Criteria) this;
}
public Criteria andFundNumNotBetween(Integer value1, Integer value2) {
addCriterion("fund_num not between", value1, value2, "fundNum");
return (Criteria) this;
}
public Criteria andStaffNumIsNull() {
addCriterion("staff_num is null");
return (Criteria) this;
}
public Criteria andStaffNumIsNotNull() {
addCriterion("staff_num is not null");
return (Criteria) this;
}
public Criteria andStaffNumEqualTo(Integer value) {
addCriterion("staff_num =", value, "staffNum");
return (Criteria) this;
}
public Criteria andStaffNumNotEqualTo(Integer value) {
addCriterion("staff_num <>", value, "staffNum");
return (Criteria) this;
}
public Criteria andStaffNumGreaterThan(Integer value) {
addCriterion("staff_num >", value, "staffNum");
return (Criteria) this;
}
public Criteria andStaffNumGreaterThanOrEqualTo(Integer value) {
addCriterion("staff_num >=", value, "staffNum");
return (Criteria) this;
}
public Criteria andStaffNumLessThan(Integer value) {
addCriterion("staff_num <", value, "staffNum");
return (Criteria) this;
}
public Criteria andStaffNumLessThanOrEqualTo(Integer value) {
addCriterion("staff_num <=", value, "staffNum");
return (Criteria) this;
}
public Criteria andStaffNumIn(List<Integer> values) {
addCriterion("staff_num in", values, "staffNum");
return (Criteria) this;
}
public Criteria andStaffNumNotIn(List<Integer> values) {
addCriterion("staff_num not in", values, "staffNum");
return (Criteria) this;
}
public Criteria andStaffNumBetween(Integer value1, Integer value2) {
addCriterion("staff_num between", value1, value2, "staffNum");
return (Criteria) this;
}
public Criteria andStaffNumNotBetween(Integer value1, Integer value2) {
addCriterion("staff_num not between", value1, value2, "staffNum");
return (Criteria) this;
}
public Criteria andAnalystNumIsNull() {
addCriterion("analyst_num is null");
return (Criteria) this;
}
public Criteria andAnalystNumIsNotNull() {
addCriterion("analyst_num is not null");
return (Criteria) this;
}
public Criteria andAnalystNumEqualTo(Integer value) {
addCriterion("analyst_num =", value, "analystNum");
return (Criteria) this;
}
public Criteria andAnalystNumNotEqualTo(Integer value) {
addCriterion("analyst_num <>", value, "analystNum");
return (Criteria) this;
}
public Criteria andAnalystNumGreaterThan(Integer value) {
addCriterion("analyst_num >", value, "analystNum");
return (Criteria) this;
}
public Criteria andAnalystNumGreaterThanOrEqualTo(Integer value) {
addCriterion("analyst_num >=", value, "analystNum");
return (Criteria) this;
}
public Criteria andAnalystNumLessThan(Integer value) {
addCriterion("analyst_num <", value, "analystNum");
return (Criteria) this;
}
public Criteria andAnalystNumLessThanOrEqualTo(Integer value) {
addCriterion("analyst_num <=", value, "analystNum");
return (Criteria) this;
}
public Criteria andAnalystNumIn(List<Integer> values) {
addCriterion("analyst_num in", values, "analystNum");
return (Criteria) this;
}
public Criteria andAnalystNumNotIn(List<Integer> values) {
addCriterion("analyst_num not in", values, "analystNum");
return (Criteria) this;
}
public Criteria andAnalystNumBetween(Integer value1, Integer value2) {
addCriterion("analyst_num between", value1, value2, "analystNum");
return (Criteria) this;
}
public Criteria andAnalystNumNotBetween(Integer value1, Integer value2) {
addCriterion("analyst_num not between", value1, value2, "analystNum");
return (Criteria) this;
}
public Criteria andTotalAssetSizeIsNull() {
addCriterion("total_asset_size is null");
return (Criteria) this;
}
public Criteria andTotalAssetSizeIsNotNull() {
addCriterion("total_asset_size is not null");
return (Criteria) this;
}
public Criteria andTotalAssetSizeEqualTo(BigDecimal value) {
addCriterion("total_asset_size =", value, "totalAssetSize");
return (Criteria) this;
}
public Criteria andTotalAssetSizeNotEqualTo(BigDecimal value) {
addCriterion("total_asset_size <>", value, "totalAssetSize");
return (Criteria) this;
}
public Criteria andTotalAssetSizeGreaterThan(BigDecimal value) {
addCriterion("total_asset_size >", value, "totalAssetSize");
return (Criteria) this;
}
public Criteria andTotalAssetSizeGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("total_asset_size >=", value, "totalAssetSize");
return (Criteria) this;
}
public Criteria andTotalAssetSizeLessThan(BigDecimal value) {
addCriterion("total_asset_size <", value, "totalAssetSize");
return (Criteria) this;
}
public Criteria andTotalAssetSizeLessThanOrEqualTo(BigDecimal value) {
addCriterion("total_asset_size <=", value, "totalAssetSize");
return (Criteria) this;
}
public Criteria andTotalAssetSizeIn(List<BigDecimal> values) {
addCriterion("total_asset_size in", values, "totalAssetSize");
return (Criteria) this;
}
public Criteria andTotalAssetSizeNotIn(List<BigDecimal> values) {
addCriterion("total_asset_size not in", values, "totalAssetSize");
return (Criteria) this;
}
public Criteria andTotalAssetSizeBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("total_asset_size between", value1, value2, "totalAssetSize");
return (Criteria) this;
}
public Criteria andTotalAssetSizeNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("total_asset_size not between", value1, value2, "totalAssetSize");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andDeleteTagIsNull() {
addCriterion("delete_tag is null");
return (Criteria) this;
}
public Criteria andDeleteTagIsNotNull() {
addCriterion("delete_tag is not null");
return (Criteria) this;
}
public Criteria andDeleteTagEqualTo(Integer value) {
addCriterion("delete_tag =", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagNotEqualTo(Integer value) {
addCriterion("delete_tag <>", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagGreaterThan(Integer value) {
addCriterion("delete_tag >", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagGreaterThanOrEqualTo(Integer value) {
addCriterion("delete_tag >=", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagLessThan(Integer value) {
addCriterion("delete_tag <", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagLessThanOrEqualTo(Integer value) {
addCriterion("delete_tag <=", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagIn(List<Integer> values) {
addCriterion("delete_tag in", values, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagNotIn(List<Integer> values) {
addCriterion("delete_tag not in", values, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagBetween(Integer value1, Integer value2) {
addCriterion("delete_tag between", value1, value2, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagNotBetween(Integer value1, Integer value2) {
addCriterion("delete_tag not between", value1, value2, "deleteTag");
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);
}
}
}
\ No newline at end of file
package com.tanpu.fund.entity.generator;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
/**
* 人员在公司职务信息
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PersonCompanyPositionMapping {
private String id;
/**
* 人物id
*/
private String personnelId;
/**
* 公司id
*/
private String companyId;
/**
* 人员类型:1-基金经理 2-投研 3-联系人 4-市场 5-合规风控 6-公司高管 7-公司法人 -1-其他
*/
private Integer personnelType;
/**
* 当前职位
*/
private String position;
/**
* 任职部门
*/
private String department;
/**
* 是否默认职位信息:1-是,0-否
*/
private Integer isDefault;
/**
* 任职开始日期
*/
private Date startDate;
/**
* 任职结束日期
*/
private Date endDate;
/**
* 职位次序
*/
private Integer positionOrder;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private Integer deleteTag;
}
\ No newline at end of file
package com.tanpu.fund.entity.generator;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
public class PersonCompanyPositionMappingExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public PersonCompanyPositionMappingExample() {
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));
}
protected void addCriterionForJDBCDate(String condition, Date value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Date(value.getTime()), property);
}
protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
if (values == null || values.size() == 0) {
throw new RuntimeException("Value list for " + property + " cannot be null or empty");
}
List<java.sql.Date> dateList = new ArrayList<>();
Iterator<Date> iter = values.iterator();
while (iter.hasNext()) {
dateList.add(new java.sql.Date(iter.next().getTime()));
}
addCriterion(condition, dateList, property);
}
protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
}
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 andPersonnelIdIsNull() {
addCriterion("personnel_id is null");
return (Criteria) this;
}
public Criteria andPersonnelIdIsNotNull() {
addCriterion("personnel_id is not null");
return (Criteria) this;
}
public Criteria andPersonnelIdEqualTo(String value) {
addCriterion("personnel_id =", value, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdNotEqualTo(String value) {
addCriterion("personnel_id <>", value, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdGreaterThan(String value) {
addCriterion("personnel_id >", value, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdGreaterThanOrEqualTo(String value) {
addCriterion("personnel_id >=", value, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdLessThan(String value) {
addCriterion("personnel_id <", value, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdLessThanOrEqualTo(String value) {
addCriterion("personnel_id <=", value, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdLike(String value) {
addCriterion("personnel_id like", value, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdNotLike(String value) {
addCriterion("personnel_id not like", value, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdIn(List<String> values) {
addCriterion("personnel_id in", values, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdNotIn(List<String> values) {
addCriterion("personnel_id not in", values, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdBetween(String value1, String value2) {
addCriterion("personnel_id between", value1, value2, "personnelId");
return (Criteria) this;
}
public Criteria andPersonnelIdNotBetween(String value1, String value2) {
addCriterion("personnel_id not between", value1, value2, "personnelId");
return (Criteria) this;
}
public Criteria andCompanyIdIsNull() {
addCriterion("company_id is null");
return (Criteria) this;
}
public Criteria andCompanyIdIsNotNull() {
addCriterion("company_id is not null");
return (Criteria) this;
}
public Criteria andCompanyIdEqualTo(String value) {
addCriterion("company_id =", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotEqualTo(String value) {
addCriterion("company_id <>", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdGreaterThan(String value) {
addCriterion("company_id >", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdGreaterThanOrEqualTo(String value) {
addCriterion("company_id >=", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdLessThan(String value) {
addCriterion("company_id <", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdLessThanOrEqualTo(String value) {
addCriterion("company_id <=", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdLike(String value) {
addCriterion("company_id like", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotLike(String value) {
addCriterion("company_id not like", value, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdIn(List<String> values) {
addCriterion("company_id in", values, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotIn(List<String> values) {
addCriterion("company_id not in", values, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdBetween(String value1, String value2) {
addCriterion("company_id between", value1, value2, "companyId");
return (Criteria) this;
}
public Criteria andCompanyIdNotBetween(String value1, String value2) {
addCriterion("company_id not between", value1, value2, "companyId");
return (Criteria) this;
}
public Criteria andPersonnelTypeIsNull() {
addCriterion("personnel_type is null");
return (Criteria) this;
}
public Criteria andPersonnelTypeIsNotNull() {
addCriterion("personnel_type is not null");
return (Criteria) this;
}
public Criteria andPersonnelTypeEqualTo(Integer value) {
addCriterion("personnel_type =", value, "personnelType");
return (Criteria) this;
}
public Criteria andPersonnelTypeNotEqualTo(Integer value) {
addCriterion("personnel_type <>", value, "personnelType");
return (Criteria) this;
}
public Criteria andPersonnelTypeGreaterThan(Integer value) {
addCriterion("personnel_type >", value, "personnelType");
return (Criteria) this;
}
public Criteria andPersonnelTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("personnel_type >=", value, "personnelType");
return (Criteria) this;
}
public Criteria andPersonnelTypeLessThan(Integer value) {
addCriterion("personnel_type <", value, "personnelType");
return (Criteria) this;
}
public Criteria andPersonnelTypeLessThanOrEqualTo(Integer value) {
addCriterion("personnel_type <=", value, "personnelType");
return (Criteria) this;
}
public Criteria andPersonnelTypeIn(List<Integer> values) {
addCriterion("personnel_type in", values, "personnelType");
return (Criteria) this;
}
public Criteria andPersonnelTypeNotIn(List<Integer> values) {
addCriterion("personnel_type not in", values, "personnelType");
return (Criteria) this;
}
public Criteria andPersonnelTypeBetween(Integer value1, Integer value2) {
addCriterion("personnel_type between", value1, value2, "personnelType");
return (Criteria) this;
}
public Criteria andPersonnelTypeNotBetween(Integer value1, Integer value2) {
addCriterion("personnel_type not between", value1, value2, "personnelType");
return (Criteria) this;
}
public Criteria andPositionIsNull() {
addCriterion("`position` is null");
return (Criteria) this;
}
public Criteria andPositionIsNotNull() {
addCriterion("`position` is not null");
return (Criteria) this;
}
public Criteria andPositionEqualTo(String value) {
addCriterion("`position` =", value, "position");
return (Criteria) this;
}
public Criteria andPositionNotEqualTo(String value) {
addCriterion("`position` <>", value, "position");
return (Criteria) this;
}
public Criteria andPositionGreaterThan(String value) {
addCriterion("`position` >", value, "position");
return (Criteria) this;
}
public Criteria andPositionGreaterThanOrEqualTo(String value) {
addCriterion("`position` >=", value, "position");
return (Criteria) this;
}
public Criteria andPositionLessThan(String value) {
addCriterion("`position` <", value, "position");
return (Criteria) this;
}
public Criteria andPositionLessThanOrEqualTo(String value) {
addCriterion("`position` <=", value, "position");
return (Criteria) this;
}
public Criteria andPositionLike(String value) {
addCriterion("`position` like", value, "position");
return (Criteria) this;
}
public Criteria andPositionNotLike(String value) {
addCriterion("`position` not like", value, "position");
return (Criteria) this;
}
public Criteria andPositionIn(List<String> values) {
addCriterion("`position` in", values, "position");
return (Criteria) this;
}
public Criteria andPositionNotIn(List<String> values) {
addCriterion("`position` not in", values, "position");
return (Criteria) this;
}
public Criteria andPositionBetween(String value1, String value2) {
addCriterion("`position` between", value1, value2, "position");
return (Criteria) this;
}
public Criteria andPositionNotBetween(String value1, String value2) {
addCriterion("`position` not between", value1, value2, "position");
return (Criteria) this;
}
public Criteria andDepartmentIsNull() {
addCriterion("department is null");
return (Criteria) this;
}
public Criteria andDepartmentIsNotNull() {
addCriterion("department is not null");
return (Criteria) this;
}
public Criteria andDepartmentEqualTo(String value) {
addCriterion("department =", value, "department");
return (Criteria) this;
}
public Criteria andDepartmentNotEqualTo(String value) {
addCriterion("department <>", value, "department");
return (Criteria) this;
}
public Criteria andDepartmentGreaterThan(String value) {
addCriterion("department >", value, "department");
return (Criteria) this;
}
public Criteria andDepartmentGreaterThanOrEqualTo(String value) {
addCriterion("department >=", value, "department");
return (Criteria) this;
}
public Criteria andDepartmentLessThan(String value) {
addCriterion("department <", value, "department");
return (Criteria) this;
}
public Criteria andDepartmentLessThanOrEqualTo(String value) {
addCriterion("department <=", value, "department");
return (Criteria) this;
}
public Criteria andDepartmentLike(String value) {
addCriterion("department like", value, "department");
return (Criteria) this;
}
public Criteria andDepartmentNotLike(String value) {
addCriterion("department not like", value, "department");
return (Criteria) this;
}
public Criteria andDepartmentIn(List<String> values) {
addCriterion("department in", values, "department");
return (Criteria) this;
}
public Criteria andDepartmentNotIn(List<String> values) {
addCriterion("department not in", values, "department");
return (Criteria) this;
}
public Criteria andDepartmentBetween(String value1, String value2) {
addCriterion("department between", value1, value2, "department");
return (Criteria) this;
}
public Criteria andDepartmentNotBetween(String value1, String value2) {
addCriterion("department not between", value1, value2, "department");
return (Criteria) this;
}
public Criteria andIsDefaultIsNull() {
addCriterion("is_default is null");
return (Criteria) this;
}
public Criteria andIsDefaultIsNotNull() {
addCriterion("is_default is not null");
return (Criteria) this;
}
public Criteria andIsDefaultEqualTo(Integer value) {
addCriterion("is_default =", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultNotEqualTo(Integer value) {
addCriterion("is_default <>", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultGreaterThan(Integer value) {
addCriterion("is_default >", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultGreaterThanOrEqualTo(Integer value) {
addCriterion("is_default >=", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultLessThan(Integer value) {
addCriterion("is_default <", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultLessThanOrEqualTo(Integer value) {
addCriterion("is_default <=", value, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultIn(List<Integer> values) {
addCriterion("is_default in", values, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultNotIn(List<Integer> values) {
addCriterion("is_default not in", values, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultBetween(Integer value1, Integer value2) {
addCriterion("is_default between", value1, value2, "isDefault");
return (Criteria) this;
}
public Criteria andIsDefaultNotBetween(Integer value1, Integer value2) {
addCriterion("is_default not between", value1, value2, "isDefault");
return (Criteria) this;
}
public Criteria andStartDateIsNull() {
addCriterion("start_date is null");
return (Criteria) this;
}
public Criteria andStartDateIsNotNull() {
addCriterion("start_date is not null");
return (Criteria) this;
}
public Criteria andStartDateEqualTo(Date value) {
addCriterionForJDBCDate("start_date =", value, "startDate");
return (Criteria) this;
}
public Criteria andStartDateNotEqualTo(Date value) {
addCriterionForJDBCDate("start_date <>", value, "startDate");
return (Criteria) this;
}
public Criteria andStartDateGreaterThan(Date value) {
addCriterionForJDBCDate("start_date >", value, "startDate");
return (Criteria) this;
}
public Criteria andStartDateGreaterThanOrEqualTo(Date value) {
addCriterionForJDBCDate("start_date >=", value, "startDate");
return (Criteria) this;
}
public Criteria andStartDateLessThan(Date value) {
addCriterionForJDBCDate("start_date <", value, "startDate");
return (Criteria) this;
}
public Criteria andStartDateLessThanOrEqualTo(Date value) {
addCriterionForJDBCDate("start_date <=", value, "startDate");
return (Criteria) this;
}
public Criteria andStartDateIn(List<Date> values) {
addCriterionForJDBCDate("start_date in", values, "startDate");
return (Criteria) this;
}
public Criteria andStartDateNotIn(List<Date> values) {
addCriterionForJDBCDate("start_date not in", values, "startDate");
return (Criteria) this;
}
public Criteria andStartDateBetween(Date value1, Date value2) {
addCriterionForJDBCDate("start_date between", value1, value2, "startDate");
return (Criteria) this;
}
public Criteria andStartDateNotBetween(Date value1, Date value2) {
addCriterionForJDBCDate("start_date not between", value1, value2, "startDate");
return (Criteria) this;
}
public Criteria andEndDateIsNull() {
addCriterion("end_date is null");
return (Criteria) this;
}
public Criteria andEndDateIsNotNull() {
addCriterion("end_date is not null");
return (Criteria) this;
}
public Criteria andEndDateEqualTo(Date value) {
addCriterionForJDBCDate("end_date =", value, "endDate");
return (Criteria) this;
}
public Criteria andEndDateNotEqualTo(Date value) {
addCriterionForJDBCDate("end_date <>", value, "endDate");
return (Criteria) this;
}
public Criteria andEndDateGreaterThan(Date value) {
addCriterionForJDBCDate("end_date >", value, "endDate");
return (Criteria) this;
}
public Criteria andEndDateGreaterThanOrEqualTo(Date value) {
addCriterionForJDBCDate("end_date >=", value, "endDate");
return (Criteria) this;
}
public Criteria andEndDateLessThan(Date value) {
addCriterionForJDBCDate("end_date <", value, "endDate");
return (Criteria) this;
}
public Criteria andEndDateLessThanOrEqualTo(Date value) {
addCriterionForJDBCDate("end_date <=", value, "endDate");
return (Criteria) this;
}
public Criteria andEndDateIn(List<Date> values) {
addCriterionForJDBCDate("end_date in", values, "endDate");
return (Criteria) this;
}
public Criteria andEndDateNotIn(List<Date> values) {
addCriterionForJDBCDate("end_date not in", values, "endDate");
return (Criteria) this;
}
public Criteria andEndDateBetween(Date value1, Date value2) {
addCriterionForJDBCDate("end_date between", value1, value2, "endDate");
return (Criteria) this;
}
public Criteria andEndDateNotBetween(Date value1, Date value2) {
addCriterionForJDBCDate("end_date not between", value1, value2, "endDate");
return (Criteria) this;
}
public Criteria andPositionOrderIsNull() {
addCriterion("position_order is null");
return (Criteria) this;
}
public Criteria andPositionOrderIsNotNull() {
addCriterion("position_order is not null");
return (Criteria) this;
}
public Criteria andPositionOrderEqualTo(Integer value) {
addCriterion("position_order =", value, "positionOrder");
return (Criteria) this;
}
public Criteria andPositionOrderNotEqualTo(Integer value) {
addCriterion("position_order <>", value, "positionOrder");
return (Criteria) this;
}
public Criteria andPositionOrderGreaterThan(Integer value) {
addCriterion("position_order >", value, "positionOrder");
return (Criteria) this;
}
public Criteria andPositionOrderGreaterThanOrEqualTo(Integer value) {
addCriterion("position_order >=", value, "positionOrder");
return (Criteria) this;
}
public Criteria andPositionOrderLessThan(Integer value) {
addCriterion("position_order <", value, "positionOrder");
return (Criteria) this;
}
public Criteria andPositionOrderLessThanOrEqualTo(Integer value) {
addCriterion("position_order <=", value, "positionOrder");
return (Criteria) this;
}
public Criteria andPositionOrderIn(List<Integer> values) {
addCriterion("position_order in", values, "positionOrder");
return (Criteria) this;
}
public Criteria andPositionOrderNotIn(List<Integer> values) {
addCriterion("position_order not in", values, "positionOrder");
return (Criteria) this;
}
public Criteria andPositionOrderBetween(Integer value1, Integer value2) {
addCriterion("position_order between", value1, value2, "positionOrder");
return (Criteria) this;
}
public Criteria andPositionOrderNotBetween(Integer value1, Integer value2) {
addCriterion("position_order not between", value1, value2, "positionOrder");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andDeleteTagIsNull() {
addCriterion("delete_tag is null");
return (Criteria) this;
}
public Criteria andDeleteTagIsNotNull() {
addCriterion("delete_tag is not null");
return (Criteria) this;
}
public Criteria andDeleteTagEqualTo(Integer value) {
addCriterion("delete_tag =", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagNotEqualTo(Integer value) {
addCriterion("delete_tag <>", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagGreaterThan(Integer value) {
addCriterion("delete_tag >", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagGreaterThanOrEqualTo(Integer value) {
addCriterion("delete_tag >=", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagLessThan(Integer value) {
addCriterion("delete_tag <", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagLessThanOrEqualTo(Integer value) {
addCriterion("delete_tag <=", value, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagIn(List<Integer> values) {
addCriterion("delete_tag in", values, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagNotIn(List<Integer> values) {
addCriterion("delete_tag not in", values, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagBetween(Integer value1, Integer value2) {
addCriterion("delete_tag between", value1, value2, "deleteTag");
return (Criteria) this;
}
public Criteria andDeleteTagNotBetween(Integer value1, Integer value2) {
addCriterion("delete_tag not between", value1, value2, "deleteTag");
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);
}
}
}
\ No newline at end of file
......@@ -6,26 +6,32 @@ import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
@Mapper
public interface CompanyInfoMapper {
long countByExample(CompanyInfoExample example);
int deleteByExample(CompanyInfoExample example);
/**
* delete by primary key
*
* @param id primaryKey
* @return deleteCount
*/
int deleteByPrimaryKey(String id);
/**
* insert record to table
*
* @param record the record
* @return insert count
*/
int insert(CompanyInfo record);
int insertOrUpdate(CompanyInfo record);
......@@ -34,24 +40,12 @@ public interface CompanyInfoMapper {
int insertOrUpdateWithBLOBs(CompanyInfo record);
/**
* insert record to table selective
*
* @param record the record
* @return insert count
*/
int insertSelective(CompanyInfo record);
List<CompanyInfo> selectByExampleWithBLOBs(CompanyInfoExample example);
List<CompanyInfo> selectByExample(CompanyInfoExample example);
/**
* select by primary key
*
* @param id primary key
* @return object by primary key
*/
CompanyInfo selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") CompanyInfo record, @Param("example") CompanyInfoExample example);
......@@ -60,25 +54,15 @@ public interface CompanyInfoMapper {
int updateByExample(@Param("record") CompanyInfo record, @Param("example") CompanyInfoExample example);
/**
* update record selective
*
* @param record the updated record
* @return update count
*/
int updateByPrimaryKeySelective(CompanyInfo record);
int updateByPrimaryKeyWithBLOBs(CompanyInfo record);
/**
* update record
*
* @param record the updated record
* @return update count
*/
int updateByPrimaryKey(CompanyInfo record);
int updateBatch(List<CompanyInfo> list);
int updateBatchSelective(List<CompanyInfo> list);
int batchInsert(@Param("list") List<CompanyInfo> list);
}
\ No newline at end of file
package com.tanpu.fund.mapper.generator;
import com.tanpu.fund.entity.generator.CompanyTnaPersonnel;
import com.tanpu.fund.entity.generator.CompanyTnaPersonnelExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
@Mapper
public interface CompanyTnaPersonnelMapper {
long countByExample(CompanyTnaPersonnelExample example);
int deleteByExample(CompanyTnaPersonnelExample example);
int deleteByPrimaryKey(String id);
int insert(CompanyTnaPersonnel record);
int insertOrUpdate(CompanyTnaPersonnel record);
int insertOrUpdateSelective(CompanyTnaPersonnel record);
int insertSelective(CompanyTnaPersonnel record);
List<CompanyTnaPersonnel> selectByExample(CompanyTnaPersonnelExample example);
CompanyTnaPersonnel selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") CompanyTnaPersonnel record, @Param("example") CompanyTnaPersonnelExample example);
int updateByExample(@Param("record") CompanyTnaPersonnel record, @Param("example") CompanyTnaPersonnelExample example);
int updateByPrimaryKeySelective(CompanyTnaPersonnel record);
int updateByPrimaryKey(CompanyTnaPersonnel record);
int updateBatch(List<CompanyTnaPersonnel> list);
int updateBatchSelective(List<CompanyTnaPersonnel> list);
int batchInsert(@Param("list") List<CompanyTnaPersonnel> list);
}
\ No newline at end of file
package com.tanpu.fund.mapper.generator;
import com.tanpu.fund.entity.generator.PersonCompanyPositionMapping;
import com.tanpu.fund.entity.generator.PersonCompanyPositionMappingExample;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
@Mapper
public interface PersonCompanyPositionMappingMapper {
long countByExample(PersonCompanyPositionMappingExample example);
int deleteByExample(PersonCompanyPositionMappingExample example);
int deleteByPrimaryKey(String id);
int insert(PersonCompanyPositionMapping record);
int insertOrUpdate(PersonCompanyPositionMapping record);
int insertOrUpdateSelective(PersonCompanyPositionMapping record);
int insertSelective(PersonCompanyPositionMapping record);
List<PersonCompanyPositionMapping> selectByExample(PersonCompanyPositionMappingExample example);
PersonCompanyPositionMapping selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") PersonCompanyPositionMapping record, @Param("example") PersonCompanyPositionMappingExample example);
int updateByExample(@Param("record") PersonCompanyPositionMapping record, @Param("example") PersonCompanyPositionMappingExample example);
int updateByPrimaryKeySelective(PersonCompanyPositionMapping record);
int updateByPrimaryKey(PersonCompanyPositionMapping record);
int updateBatch(List<PersonCompanyPositionMapping> list);
int updateBatchSelective(List<PersonCompanyPositionMapping> list);
int batchInsert(@Param("list") List<PersonCompanyPositionMapping> list);
}
\ No newline at end of file
package com.tanpu.fund.service;
import com.tanpu.common.model.Page;
import com.tanpu.common.model.Pageable;
import com.tanpu.common.model.product.req.NetReq;
import com.tanpu.common.model.product.req.ProductInfoReq;
import com.tanpu.common.model.product.req.ProductListReq;
import com.tanpu.common.model.product.resp.BonusRatioVO;
import com.tanpu.common.model.product.resp.DynamicRetreatVO;
import com.tanpu.common.model.product.resp.FundCompanyVO;
import com.tanpu.common.model.product.resp.FundInfoSimpleListResp;
import com.tanpu.common.model.product.resp.FundManagerVO;
import com.tanpu.common.model.product.resp.FundRecordVO;
import com.tanpu.common.model.product.resp.FundSameResp;
import com.tanpu.common.model.product.resp.NetVO;
import com.tanpu.common.model.product.resp.ProductInfoVO;
import com.tanpu.common.model.product.resp.RiskRatingVO;
import com.tanpu.common.model.product.resp.TrackNetVO;
import com.tanpu.common.model.product.resp.TrackRecordVO;
import com.tanpu.common.model.product.resp.TradeNotesResp;
import com.tanpu.common.model.product.resp.UnitNetVO;
import java.util.List;
/**
* @author: zhoupeng
* @email: zhoupeng_08@163.com
*/
public interface ProductPrivateService {
Page<ProductInfoVO> getProductList(ProductInfoReq req);
ProductInfoVO getProductDetail(String id);
List<ProductInfoVO> getProductList(List<String> ids);
Page<ProductInfoVO> getNotTanpuProduct(ProductInfoReq req);
UnitNetVO getUnitNet(String id, String ratioId, String type);
UnitNetVO getProfitTrend(String id, String ratioId, String type, Long beginTime, Long endTime);
Page<NetVO> getNetList(NetReq req);
List<BonusRatioVO> getBonusRatio(String id);
List<TrackRecordVO> getTrackRecord(String id);
Page<TrackNetVO> getTrackNetList(String id, Pageable page);
List<RiskRatingVO> getRiskRating(String id);
List<FundManagerVO> getFundManager(String id);
FundRecordVO getFundRecord(String id);
FundCompanyVO getFundCompany(String id);
FundCompanyVO getPrivateFundCompany(String id);
List<ProductInfoVO> getProductInfolist(ProductListReq req);
List<ProductInfoVO> getNotTanpuProductInfolist(ProductListReq req);
DynamicRetreatVO getDynamicRetreat(String id);
ProductInfoVO getPrivateDetail(String id);
List<TrackRecordVO> getHistoryprofit(String id);
Page<TrackNetVO> getPrivateFundTrackNetList(String id, Pageable page);
List<RiskRatingVO> getPrivateFundRiskRating(String id);
List<ProductInfoVO> getPrivateFundList(List<String> ids);
List<FundInfoSimpleListResp> getSimpleList(List<String> idList);
List<FundInfoSimpleListResp> getPrivateSimpleList(List<String> idList);
List<FundSameResp> querySamefund(String fundId);
List<FundSameResp> getRemmendPrivateFundList();
}
package com.tanpu.fund.service.impl;
import com.google.common.collect.Lists;
import com.tanpu.common.enums.Constant;
import com.tanpu.common.model.Page;
import com.tanpu.common.model.Pageable;
import com.tanpu.common.model.product.FundInfoVO;
import com.tanpu.common.model.product.req.NetReq;
import com.tanpu.common.model.product.req.ProductInfoReq;
import com.tanpu.common.model.product.req.ProductListReq;
import com.tanpu.common.model.product.resp.BonusRatioVO;
import com.tanpu.common.model.product.resp.DynamicRetreatVO;
import com.tanpu.common.model.product.resp.FundCompanyVO;
import com.tanpu.common.model.product.resp.FundInfoSimpleListResp;
import com.tanpu.common.model.product.resp.FundManagerVO;
import com.tanpu.common.model.product.resp.FundRecordVO;
import com.tanpu.common.model.product.resp.FundSameResp;
import com.tanpu.common.model.product.resp.Net;
import com.tanpu.common.model.product.resp.NetVO;
import com.tanpu.common.model.product.resp.ProductInfoVO;
import com.tanpu.common.model.product.resp.RiskRatingVO;
import com.tanpu.common.model.product.resp.TrackNetVO;
import com.tanpu.common.model.product.resp.TrackRecordVO;
import com.tanpu.common.model.product.resp.UnitNetVO;
import com.tanpu.common.model.tanpuroom.Type;
import com.tanpu.common.utils.BigDecimalUtil;
import com.tanpu.fund.entity.generator.CompanyInfo;
import com.tanpu.fund.entity.generator.CompanyTnaPersonnel;
import com.tanpu.fund.entity.generator.CompanyTnaPersonnelExample;
import com.tanpu.fund.entity.generator.FundCount;
import com.tanpu.fund.entity.generator.FundCountExample;
import com.tanpu.fund.entity.generator.FundDistribution;
import com.tanpu.fund.entity.generator.FundDistributionExample;
import com.tanpu.fund.entity.generator.FundInfo;
import com.tanpu.fund.entity.generator.FundInfoExample;
import com.tanpu.fund.entity.generator.FundManagerMapping;
import com.tanpu.fund.entity.generator.FundManagerMappingExample;
import com.tanpu.fund.entity.generator.PersonCompanyPositionMapping;
import com.tanpu.fund.entity.generator.PersonCompanyPositionMappingExample;
import com.tanpu.fund.entity.generator.PersonnelInfo;
import com.tanpu.fund.entity.generator.PersonnelInfoExample;
import com.tanpu.fund.enums.ProTypeEnums;
import com.tanpu.fund.mapper.generator.CompanyInfoMapper;
import com.tanpu.fund.mapper.generator.CompanyTnaPersonnelMapper;
import com.tanpu.fund.mapper.generator.FundCountMapper;
import com.tanpu.fund.mapper.generator.FundDistributionMapper;
import com.tanpu.fund.mapper.generator.FundInfoMapper;
import com.tanpu.fund.mapper.generator.FundManagerMappingMapper;
import com.tanpu.fund.mapper.generator.PersonCompanyPositionMappingMapper;
import com.tanpu.fund.mapper.generator.PersonnelInfoMapper;
import com.tanpu.fund.service.ProductPrivateService;
import com.tanpu.fund.utils.LongUtil;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import static com.tanpu.common.utils.BigDecimalUtil.multiply100;
/**
* @author: zhoupeng
* <p>
* =========================================
* =========================================
* ======== ========
* ======= ========== ======= =======
* ====== ===== == ==== ======
* ===== ===== == === =====
* ===== ===== == === =====
* ===== ===== == === =====
* ====== ========== == ======
* ======= =======
* =========================================
* =========================================
* <p>
* @email: zhoupeng_08@163.com
*/
@Service
public class ProductPrivateServiceImpl implements ProductPrivateService, Constant {
@Value("${company.oss.prefix}")
private String filePrefix;
@Resource
private FundInfoMapper fundInfoMapper;
@Resource
private CompanyInfoMapper companyInfoMapper;
@Resource
private PersonnelInfoMapper personnelInfoMapper;
@Resource
private CompanyTnaPersonnelMapper companyTnaPersonnelMapper;
@Resource
private FundManagerMappingMapper fundManagerMappingMapper;
@Resource
private FundCountMapper fundCountMapper;
@Resource
private FundDistributionMapper fundDistributionMapper;
@Resource
private PersonCompanyPositionMappingMapper personCompanyPositionMappingMapper;
@Override
public Page<ProductInfoVO> getProductList(ProductInfoReq req) {
return null;
}
@Override
public ProductInfoVO getProductDetail(String id) {
return null;
}
@Override
public List<ProductInfoVO> getProductList(List<String> ids) {
return null;
}
@Override
public Page<ProductInfoVO> getNotTanpuProduct(ProductInfoReq req) {
return null;
}
@Override
public UnitNetVO getUnitNet(String id, String ratioId, String type) {
return null;
}
@Override
public UnitNetVO getProfitTrend(String id, String ratioId, String type, Long beginTime, Long endTime) {
return null;
}
@Override
public Page<NetVO> getNetList(NetReq req) {
return null;
}
@Override
public List<BonusRatioVO> getBonusRatio(String id) {
FundDistributionExample example = new FundDistributionExample();
example.createCriteria().andFundIdEqualTo(id).andDeleteTagEqualTo(ZERO_NUM);
example.setOrderByClause("distribute_date desc");
List<FundDistribution> list = this.fundDistributionMapper.selectByExample(example);
return list.stream().filter(
l -> l.getDistributeDate() != null && (l.getDistributeType() == 1 || l.getDistributeType() == 2))
.map(l -> {
BonusRatioVO vo = new BonusRatioVO();
vo.setType(l.getDistributeType());
vo.setTime(l.getDistributeDate().getTime());
if (l.getDistribution() != null) {
vo.setDistribution(l.getDistribution().setScale(2, BigDecimal.ROUND_HALF_UP).toString());
}
return vo;
}).collect(Collectors.toList());
}
@Override
public List<TrackRecordVO> getTrackRecord(String id) {
return null;
}
@Override
public Page<TrackNetVO> getTrackNetList(String id, Pageable page) {
return null;
}
@Override
public List<RiskRatingVO> getRiskRating(String id) {
return null;
}
@Override
public List<FundManagerVO> getFundManager(String id) {
FundManagerMappingExample example = new FundManagerMappingExample();
example.createCriteria().andFundIdEqualTo(id).andIsvisibleEqualTo(ONE_NUM).andDeleteTagEqualTo(ZERO_NUM);
example.setOrderByClause("update_time desc");
List<String> list = this.fundManagerMappingMapper.selectByExample(example).stream()
.map(FundManagerMapping::getFundManagerId).collect(Collectors.toList());
if (CollectionUtils.isEmpty(list)) {
return new ArrayList<>(0);
}
example.clear();
example.createCriteria().andFundManagerIdIn(list);
List<FundManagerMapping> managerMappings = this.fundManagerMappingMapper.selectByExample(example);
List<String> fundIds = managerMappings.stream().map(FundManagerMapping::getFundId).distinct()
.collect(Collectors.toList());
FundCountExample example2 = new FundCountExample();
example2.createCriteria().andFundIdIn(fundIds).andDeleteTagEqualTo(ZERO_NUM);
example2.setOrderByClause("ret_incep desc");
List<FundCount> fundCounts = this.fundCountMapper.selectByExample(example2);
Map<String, FundCount> fundCountMap = fundCounts.stream()
.collect(Collectors.toMap(FundCount::getFundId, f -> f));
Map<String, List<FundManagerMapping>> map = managerMappings.stream()
.collect(Collectors.groupingBy(FundManagerMapping::getFundManagerId));
// 获取基金基本信息
FundInfoExample example3 = new FundInfoExample();
example3.createCriteria().andIdIn(fundIds).andDeleteTagEqualTo(ZERO_NUM);
Map<String, FundInfo> infoMap = this.fundInfoMapper.selectByExample(example3).stream()
.collect(Collectors.toMap(FundInfo::getId, f -> f));
// 获取详情信息
PersonnelInfoExample example1 = new PersonnelInfoExample();
example1.createCriteria().andIdIn(list).andDeleteTagEqualTo(ZERO_NUM);
List<PersonnelInfo> infos = this.personnelInfoMapper.selectByExampleWithBLOBs(example1);
// 基金经理
return infos.stream().map(i -> {
FundManagerVO vo = new FundManagerVO();
vo.setManagerId(i.getId());
vo.setManagerName(i.getPersonnelName());
vo.setJobTime(i.getInvestmentExperience());
vo.setPersonalProfile(i.getProfile());
vo.setEducation(i.getEducation());
List<FundManagerMapping> managerMappingList = map.get(i.getId());
if (CollectionUtils.isNotEmpty(managerMappingList)) {
String fundId = managerMappingList.get(0).getFundId();
vo.setId(fundId);
if (managerMappingList.get(0).getManagementStartDate() != null) {
vo.setManagementStartDate(managerMappingList.get(0).getManagementStartDate().getTime());
}
FundInfo info = infoMap.get(fundId);
vo.setFundName(info.getFundShortName());
vo.setRatioId(info.getPrimaryBenchmarkId());
FundCount fundCount = fundCountMap.get(fundId);
if (fundCount != null) {
vo.setRetIncep(multiply100(fundCount.getRetIncep()));
vo.setNet(new Net(fundCount.getEndDate() == null ? null : fundCount.getEndDate().getTime(),
BigDecimalUtil.toString(fundCount.getCumulativeNav(), 4), BigDecimalUtil.toString(fundCount.getCumulativeNav(), 4)));
}
if (infoMap.get(fundId) != null) {
FundInfo fundInfo = infoMap.get(fundId);
vo.setTime(LongUtil.timeLong(fundInfo.getRegisterDate()));
vo.setInceptionDate(LongUtil.timeLong(fundInfo.getInceptionDate()));
}
// 设置代表基金id 其他基金信息
getDelegateById(i.getId(), map, infoMap, fundCountMap, vo);
}
return vo;
}).collect(Collectors.toList());
}
private void getDelegateById(String personalId, Map<String, List<FundManagerMapping>> map,
Map<String, FundInfo> infoMap, Map<String, FundCount> fundCountMap, FundManagerVO vo) {
if (CollectionUtils.isNotEmpty(map.get(personalId))) {
List<FundManagerMapping> mappings = map.get(personalId);
if (CollectionUtils.isEmpty(mappings)) {
return;
}
List<FundCount> list = mappings.stream()
.filter(mapping -> fundCountMap.containsKey(mapping.getFundId()))
.map(m -> fundCountMap.get(m.getFundId()))
.sorted(Comparator.comparing(FundCount::getRetIncep).reversed())
.collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(list)) {
FundCount fundCount = list.get(0);
vo.setRetIncep(multiply100(fundCount.getRetIncep()));
vo.setInceptionDate(fundCount.getPriceDate() == null ? null : fundCount.getPriceDate().getTime());
}
vo.setFundInfoVOS(list.stream().map(l -> {
FundInfoVO infoVO = new FundInfoVO();
String fundId = l.getFundId();
infoVO.setFundId(fundId);
if (infoMap.get(fundId) != null) {
FundInfo fundInfo = infoMap.get(fundId);
infoVO.setFundName(fundInfo.getFundName());
infoVO.setRatioId(fundInfo.getPrimaryBenchmarkId());
if (fundInfo.getInceptionDate() != null) {
infoVO.setInceptionDate(fundInfo.getInceptionDate().getTime());
}
infoVO.setBonusTypeName(ProTypeEnums.getName(fundInfo.getFundType()));
infoVO.setBonusType(fundInfo.getFundType());
}
if (l.getEndDate() != null) {
infoVO.setNet(Net.builder().netDate(l.getEndDate().getTime()).netValue(BigDecimalUtil.toString(l.getNetNav(), 4)).cumulativeNav(BigDecimalUtil.toString(l.getCumulativeNav(), 2)).build());
}
infoVO.setRet1y(multiply100(l.getRet1y()));
infoVO.setRetIncep(multiply100(l.getRetIncep()));
infoVO.setYearProfit(multiply100(l.getRetIncepA()));
return infoVO;
}).collect(Collectors.toList()));
}
}
@Override
public FundRecordVO getFundRecord(String id) {
return null;
}
@Override
public FundCompanyVO getFundCompany(String id) {
CompanyInfo companyInfo = this.companyInfoMapper.selectByPrimaryKey(id);
if (companyInfo == null) {
return new FundCompanyVO();
}
CompanyTnaPersonnelExample example = new CompanyTnaPersonnelExample();
example.createCriteria().andCompanyIdEqualTo(id).andDeleteTagEqualTo(ZERO_NUM);
List<CompanyTnaPersonnel> companyTnaPersonnels = this.companyTnaPersonnelMapper.selectByExample(example);
FundCompanyVO vo = new FundCompanyVO();
vo.setCompanyName(companyInfo.getCompanyName());
vo.setCompanyId(companyInfo.getId());
vo.setImg(filePrefix + companyInfo.getLogo());
if (CollectionUtils.isNotEmpty(companyTnaPersonnels)) {
CompanyTnaPersonnel companyTnaPersonnel = companyTnaPersonnels.get(0);
vo.setTotalMoney(companyTnaPersonnel.getTotalAssetSize() == null ? null
: companyTnaPersonnel.getTotalAssetSize().toString());
vo.setTotalFund(companyTnaPersonnel.getFundNum());
}
// 基金经理信息
PersonCompanyPositionMappingExample example2 = new PersonCompanyPositionMappingExample();
example2.createCriteria().andCompanyIdEqualTo(companyInfo.getId()).andPersonnelTypeEqualTo(1);
List<PersonCompanyPositionMapping> mappings = this.personCompanyPositionMappingMapper.selectByExample(example2);
if (CollectionUtils.isNotEmpty(mappings)) {
List<PersonnelInfo> personnelInfos = getPersonnelInfos(mappings.stream().map(PersonCompanyPositionMapping::getPersonnelId).collect(Collectors.toList()));
vo.setTypes(personnelInfos.stream().map(personnelInfo ->
Type.builder().id(personnelInfo.getId()).value(personnelInfo.getPersonnelName()).build()
).collect(Collectors.toList()));
}
// 其他基金信息
otherFundInfo(vo, id);
return vo;
}
private List<PersonnelInfo> getPersonnelInfos(List<String> ids) {
PersonnelInfoExample example1 = new PersonnelInfoExample();
example1.createCriteria().andIdIn(ids);
return this.personnelInfoMapper.selectByExample(example1);
}
private Map<String, PersonnelInfo> getPersonnelInfoMap(List<String> ids) {
List<PersonnelInfo> personnelInfos = getPersonnelInfos(ids);
return personnelInfos.stream().collect(Collectors.toMap(PersonnelInfo::getId, s -> s));
}
private void otherFundInfo(FundCompanyVO vo, String id) {
FundInfoExample example1 = new FundInfoExample();
example1.createCriteria().andTrustIdEqualTo(id).andDeleteTagEqualTo(ZERO_NUM);
List<FundInfo> fundInfos = this.fundInfoMapper.selectByExample(example1);
List<String> list = fundInfos.stream().map(FundInfo::getId).collect(Collectors.toList());
Map<String, FundInfo> mapFundInfo = fundInfos.stream().collect(Collectors.toMap(FundInfo::getId, f -> f));
if (CollectionUtils.isNotEmpty(list)) {
FundCountExample example2 = new FundCountExample();
example2.createCriteria().andFundIdIn(list).andDeleteTagEqualTo(ZERO_NUM);
example2.setOrderByClause("ret_incep desc,ret_incep_a desc");
List<FundCount> fundCounts = this.fundCountMapper.selectByExample(example2);
if (CollectionUtils.isNotEmpty(fundCounts)) {
fundCounts.sort(Comparator.comparing(FundCount::getRetIncep).reversed());
FundCount fundCount = fundCounts.get(0);
FundManagerMappingExample example = new FundManagerMappingExample();
example.createCriteria().andFundIdIn(fundCounts.stream().map(FundCount::getFundId).collect(Collectors.toList()));
Map<String, String> fundIdPersonals = this.fundManagerMappingMapper.selectByExample(example)
.stream()
.collect(Collectors.groupingBy(FundManagerMapping::getFundId, Collectors.collectingAndThen(Collectors.toList(), value -> value.get(0).getFundManagerId())));
Map<String, PersonnelInfo> personnelInfoMap = getPersonnelInfoMap(Lists.newArrayList(fundIdPersonals.values()));
FundInfo info = mapFundInfo.get(fundCount.getFundId());
vo.setTime(info.getRegisterDate() == null ? null : info.getRegisterDate().getTime());
vo.setFundId(fundCount.getFundId());
vo.setRatioId(info.getPrimaryBenchmarkId());
vo.setInceptionDate(info.getInceptionDate() == null ? null : info.getInceptionDate().getTime());
vo.setFundName(info.getFundShortName());
vo.setNet(new Net(fundCount.getEndDate().getTime(), BigDecimalUtil.toString(fundCount.getCumulativeNav(), 4), BigDecimalUtil.toString(fundCount.getCumulativeNav(), 4)));
vo.setRetIncep(multiply100(fundCount.getRetIncep()));
vo.setFundInfoVOS(fundCounts.stream().map(f -> {
FundInfoVO vo1 = new FundInfoVO();
String fundId = f.getFundId();
vo1.setFundId(fundId);
vo1.setBonusTypeName(ProTypeEnums.getName(mapFundInfo.get(fundId).getFundType()));
vo1.setBonusType(mapFundInfo.get(fundId).getFundType());
vo1.setRetIncep(multiply100(f.getRetIncep()));
vo1.setYearProfit(multiply100(f.getRetIncepA()));
vo1.setNet(new Net(f.getEndDate().getTime(), BigDecimalUtil.toString(f.getNetNav(), 4), BigDecimalUtil.toString(f.getCumulativeNav(), 4)));
vo1.setFundName(mapFundInfo.get(fundId).getFundShortName());
if (fundIdPersonals.containsKey(fundId)) {
if (personnelInfoMap.containsKey(fundIdPersonals.get(fundId))) {
vo1.setManagerType(Type.builder().id(fundId).value(personnelInfoMap.get(fundIdPersonals.get(fundId)).getPersonnelName()).build());
}
}
if (mapFundInfo.get(fundId).getInceptionDate() != null) {
vo1.setInceptionDate(mapFundInfo.get(fundId).getInceptionDate().getTime());
}
vo1.setRet1y(multiply100(f.getRet1y()));
vo1.setRatioId(info.getPrimaryBenchmarkId());
return vo1;
}).collect(Collectors.toList()));
}
}
}
@Override
public FundCompanyVO getPrivateFundCompany(String id) {
return null;
}
@Override
public List<ProductInfoVO> getProductInfolist(ProductListReq req) {
return null;
}
@Override
public List<ProductInfoVO> getNotTanpuProductInfolist(ProductListReq req) {
return null;
}
@Override
public DynamicRetreatVO getDynamicRetreat(String id) {
return null;
}
@Override
public ProductInfoVO getPrivateDetail(String id) {
return null;
}
@Override
public List<TrackRecordVO> getHistoryprofit(String id) {
return null;
}
@Override
public Page<TrackNetVO> getPrivateFundTrackNetList(String id, Pageable page) {
return null;
}
@Override
public List<RiskRatingVO> getPrivateFundRiskRating(String id) {
return null;
}
@Override
public List<ProductInfoVO> getPrivateFundList(List<String> ids) {
return null;
}
@Override
public List<FundInfoSimpleListResp> getSimpleList(List<String> idList) {
return null;
}
@Override
public List<FundInfoSimpleListResp> getPrivateSimpleList(List<String> idList) {
return null;
}
@Override
public List<FundSameResp> querySamefund(String fundId) {
return null;
}
@Override
public List<FundSameResp> getRemmendPrivateFundList() {
return null;
}
}
server.port=8199
server.undertow.direct-buffers=true
server.undertow.io-threads=9
server.undertow.worker-threads=9
spring.application.name=service-fund
#\u76D1\u63A7
management.endpoints.web.base-path = /myhealth
management.endpoint.health.enabled=true
management.endpoint.health.show-details=always
spring.datasource.url=jdbc:mysql://118.190.63.109:3306/tamp_fund?autoReconnect=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=false
spring.datasource.username=root
spring.datasource.password='@imeng123'
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
company.oss.prefix = https://tamp-pro.oss-cn-shanghai.aliyuncs.com/
#mybatis
mybatis.mapper-locations=classpath:mybatis/generator/*.xml,classpath:mybatis/customize/*.xml
#redis\u96C6\u7FA4\u914D\u7F6E
spring.redis.host=118.190.63.109
spring.redis.port=56379
spring.redis.password=qimeng123
#spring.redis.cluster.nodes[0]=55ai.cn:6379
#spring.redis.cluster.max-redirects=3
spring.redis.lettuce.pool.max-active=100
spring.redis.lettuce.pool.max-idle=20
spring.redis.lettuce.pool.max-wait=1000ms
spring.redis.lettuce.pool.min-idle=10
spring.redis.lettuce.pool.time-between-eviction-runs=300s
spring.redis.lettuce.shutdown-timeout=5s
elastic.job.zk.serverLists=47.103.68.216:2181
elastic.job.zk.namespace=${spring.application.name}
server.servlet.context-path=/fund
springfox.documentation.swagger.v2.path=/api-docs
# \u914D\u7F6E\u6838\u5FC3\u7EBF\u7A0B\u6570
executor.core_pool_size=5
# \u914D\u7F6E\u6700\u5927\u7EBF\u7A0B\u6570
executor.max_pool_size=5
# \u914D\u7F6E\u961F\u5217\u5927\u5C0F
executor.queue_capacity=99
# \u914D\u7F6E\u7EBF\u7A0B\u6C60\u4E2D\u7684\u7EBF\u7A0B\u7684\u540D\u79F0\u524D\u7F00
executor.thread_name_prefix=async-service-fund
# \u914D\u7F6E\u6838\u5FC3\u7EBF\u7A0B\u6570
task.core_pool_size=1
# \u914D\u7F6E\u6700\u5927\u7EBF\u7A0B\u6570
task.max_pool_size=1
# \u914D\u7F6E\u961F\u5217\u5927\u5C0F
task.queue_capacity=10
# \u914D\u7F6E\u7EBF\u7A0B\u6C60\u4E2D\u7684\u7EBF\u7A0B\u7684\u540D\u79F0\u524D\u7F00
task.thread_name_prefix=async-task-fund
file.preview.path = https://tamp-sit.oss-cn-shanghai.aliyuncs.com/docConvertOutput/
#######################################
####### kafka\u914D\u7F6E ####
#######################################
#spring.kafka.bootstrap-servers=118.190.63.109:9092
#spring.kafka.producer.retries=1
#spring.kafka.consumer.group-id=service-product
#spring.kafka.consumer.auto-offset-reset=earliest
#spring.kafka.consumer.enable-auto-commit=false
#spring.kafka.listener.ack-mode=manual
#spring.kafka.listener.type=batch
##spring.kafka.consumer.auto-commit-interval=1000
#spring.kafka.consumer.fetch-max-wait=500
#spring.kafka.consumer.max-poll-records=100
#spring.kafka.listener.missing-topics-fatal=false
#spring.kafka.listener.concurrency=1
### \u901A\u7528\u914D\u7F6E
spring.cloud.consul.discovery.enabled=false
spring.cloud.consul.enabled=false
apollo.bootstrap.enabled=false
logging.level.com.tanpu=debug
## \u963F\u91CCOSS
aliyun.aliyunoss.endpoint=http://oss-cn-shanghai.aliyuncs.com
aliyun.accessKeyId = LTAIAKEzVydP0Q9P
aliyun.accessKeySecret = 59V9ke9txaIFzWxHFKTb1eoOOpmKpJ
tanpu.oss.ali.bucket-name=fatoolimg
aliyun.aliyunoss.bucketName=${tanpu.oss.ali.bucket-name}
tanpu.oss.ali.region-id = cn-shanghai
tanpu.oss.ali.endpoint = https://oss-${tanpu.oss.ali.region-id}.aliyuncs.com
tanpu.oss.ali.bucket-domain = https://${tanpu.oss.ali.bucket-name}.oss-${tanpu.oss.ali.region-id}.aliyuncs.com
tanpu.oss.ali.oss-path = /upload
tanpu.userno.startstep = 10000000
shorterUrl.domain = http://shorturl:8086/shorter/get
......@@ -1462,6 +1462,401 @@
#{item.id,jdbcType=VARCHAR}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update company_info
<trim prefix="set" suffixOverrides=",">
<trim prefix="p_company_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.pCompanyId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.pCompanyId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="company_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyName != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="company_short_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyShortName != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyShortName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="company_english_name = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyEnglishName != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyEnglishName,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="company_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyType != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyType,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="organization_number = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.organizationNumber != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.organizationNumber,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="establish_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.establishDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.establishDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="domicile_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.domicileId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.domicileId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="company_address = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyAddress != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyAddress,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="company_address2 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyAddress2 != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyAddress2,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="city = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.city != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.city,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="province = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.province != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.province,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="country = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.country != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.country,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="reg_city = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.regCity != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.regCity,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="reg_province = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.regProvince != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.regProvince,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="reg_country = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.regCountry != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.regCountry,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="contact_phone = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.contactPhone != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.contactPhone,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="post_code = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.postCode != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.postCode,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="fax = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.fax != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fax,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="email = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.email != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.email,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="website = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.website != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.website,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="registered_capital = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.registeredCapital != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.registeredCapital,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="offshore_fund = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.offshoreFund != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.offshoreFund,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="company_status = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyStatus != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyStatus,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="base_currency_crc = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.baseCurrencyCrc != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.baseCurrencyCrc,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="register_number = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.registerNumber != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.registerNumber,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="register_status = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.registerStatus != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.registerStatus,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="register_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.registerDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.registerDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="register_number_address = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.registerNumberAddress != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.registerNumberAddress,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="is_member = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.isMember != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isMember,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="join_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.joinDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.joinDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="member_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.memberType != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.memberType,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="fund_category_ori = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.fundCategoryOri != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundCategoryOri,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="business_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.businessType != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.businessType,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="nature_business_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.natureBusinessType != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.natureBusinessType,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="capital_paid_rate = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.capitalPaidRate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.capitalPaidRate,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="logo = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.logo != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.logo,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="isvisible = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.isvisible != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isvisible,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="paid_capital = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.paidCapital != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.paidCapital,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="company_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyAssetSize != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyAssetSize,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="legal_representative = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.legalRepresentative != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.legalRepresentative,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="is_qualify = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.isQualify != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isQualify,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="get_qualify_method = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.getQualifyMethod != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.getQualifyMethod,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="employee_cnts = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.employeeCnts != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.employeeCnts,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="integrity_info = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.integrityInfo != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.integrityInfo,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="special_tips = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.specialTips != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.specialTips,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="amac_link = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.amacLink != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.amacLink,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="delete_tag = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.deleteTag != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="company_profile = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyProfile != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyProfile,jdbcType=LONGVARCHAR}
</if>
</foreach>
</trim>
<trim prefix="philosopy = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.philosopy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.philosopy,jdbcType=LONGVARCHAR}
</if>
</foreach>
</trim>
<trim prefix="representative_experience = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.representativeExperience != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.representativeExperience,jdbcType=LONGVARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=VARCHAR}
</foreach>
</update>
<insert id="batchInsert" parameterType="map">
<!--@mbg.generated-->
insert into company_info
......
<?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.tanpu.fund.mapper.generator.CompanyTnaPersonnelMapper">
<resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.CompanyTnaPersonnel">
<!--@mbg.generated-->
<!--@Table company_tna_personnel-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="company_id" jdbcType="VARCHAR" property="companyId" />
<result column="stat_date" jdbcType="DATE" property="statDate" />
<result column="trust_fund_asset_size" jdbcType="DECIMAL" property="trustFundAssetSize" />
<result column="special_account_asset_size" jdbcType="DECIMAL" property="specialAccountAssetSize" />
<result column="ltdco_fund_asset_size" jdbcType="DECIMAL" property="ltdcoFundAssetSize" />
<result column="offshore_fund_asset_size" jdbcType="DECIMAL" property="offshoreFundAssetSize" />
<result column="fund_num" jdbcType="INTEGER" property="fundNum" />
<result column="staff_num" jdbcType="INTEGER" property="staffNum" />
<result column="analyst_num" jdbcType="INTEGER" property="analystNum" />
<result column="total_asset_size" jdbcType="DECIMAL" property="totalAssetSize" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="delete_tag" jdbcType="INTEGER" property="deleteTag" />
</resultMap>
<sql id="Example_Where_Clause">
<!--@mbg.generated-->
<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">
<!--@mbg.generated-->
<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">
<!--@mbg.generated-->
id, company_id, stat_date, trust_fund_asset_size, special_account_asset_size, ltdco_fund_asset_size,
offshore_fund_asset_size, fund_num, staff_num, analyst_num, total_asset_size, create_by,
create_time, update_by, update_time, delete_tag
</sql>
<select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.CompanyTnaPersonnelExample" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from company_tna_personnel
<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">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from company_tna_personnel
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--@mbg.generated-->
delete from company_tna_personnel
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.CompanyTnaPersonnelExample">
<!--@mbg.generated-->
delete from company_tna_personnel
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.tanpu.fund.entity.generator.CompanyTnaPersonnel">
<!--@mbg.generated-->
insert into company_tna_personnel (id, company_id, stat_date,
trust_fund_asset_size, special_account_asset_size,
ltdco_fund_asset_size, offshore_fund_asset_size,
fund_num, staff_num, analyst_num,
total_asset_size, create_by, create_time,
update_by, update_time, delete_tag
)
values (#{id,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{statDate,jdbcType=DATE},
#{trustFundAssetSize,jdbcType=DECIMAL}, #{specialAccountAssetSize,jdbcType=DECIMAL},
#{ltdcoFundAssetSize,jdbcType=DECIMAL}, #{offshoreFundAssetSize,jdbcType=DECIMAL},
#{fundNum,jdbcType=INTEGER}, #{staffNum,jdbcType=INTEGER}, #{analystNum,jdbcType=INTEGER},
#{totalAssetSize,jdbcType=DECIMAL}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.CompanyTnaPersonnel">
<!--@mbg.generated-->
insert into company_tna_personnel
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="companyId != null">
company_id,
</if>
<if test="statDate != null">
stat_date,
</if>
<if test="trustFundAssetSize != null">
trust_fund_asset_size,
</if>
<if test="specialAccountAssetSize != null">
special_account_asset_size,
</if>
<if test="ltdcoFundAssetSize != null">
ltdco_fund_asset_size,
</if>
<if test="offshoreFundAssetSize != null">
offshore_fund_asset_size,
</if>
<if test="fundNum != null">
fund_num,
</if>
<if test="staffNum != null">
staff_num,
</if>
<if test="analystNum != null">
analyst_num,
</if>
<if test="totalAssetSize != null">
total_asset_size,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="deleteTag != null">
delete_tag,
</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="statDate != null">
#{statDate,jdbcType=DATE},
</if>
<if test="trustFundAssetSize != null">
#{trustFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="specialAccountAssetSize != null">
#{specialAccountAssetSize,jdbcType=DECIMAL},
</if>
<if test="ltdcoFundAssetSize != null">
#{ltdcoFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="offshoreFundAssetSize != null">
#{offshoreFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="fundNum != null">
#{fundNum,jdbcType=INTEGER},
</if>
<if test="staffNum != null">
#{staffNum,jdbcType=INTEGER},
</if>
<if test="analystNum != null">
#{analystNum,jdbcType=INTEGER},
</if>
<if test="totalAssetSize != null">
#{totalAssetSize,jdbcType=DECIMAL},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="deleteTag != null">
#{deleteTag,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.tanpu.fund.entity.generator.CompanyTnaPersonnelExample" resultType="java.lang.Long">
<!--@mbg.generated-->
select count(*) from company_tna_personnel
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--@mbg.generated-->
update company_tna_personnel
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.companyId != null">
company_id = #{record.companyId,jdbcType=VARCHAR},
</if>
<if test="record.statDate != null">
stat_date = #{record.statDate,jdbcType=DATE},
</if>
<if test="record.trustFundAssetSize != null">
trust_fund_asset_size = #{record.trustFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="record.specialAccountAssetSize != null">
special_account_asset_size = #{record.specialAccountAssetSize,jdbcType=DECIMAL},
</if>
<if test="record.ltdcoFundAssetSize != null">
ltdco_fund_asset_size = #{record.ltdcoFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="record.offshoreFundAssetSize != null">
offshore_fund_asset_size = #{record.offshoreFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="record.fundNum != null">
fund_num = #{record.fundNum,jdbcType=INTEGER},
</if>
<if test="record.staffNum != null">
staff_num = #{record.staffNum,jdbcType=INTEGER},
</if>
<if test="record.analystNum != null">
analyst_num = #{record.analystNum,jdbcType=INTEGER},
</if>
<if test="record.totalAssetSize != null">
total_asset_size = #{record.totalAssetSize,jdbcType=DECIMAL},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.deleteTag != null">
delete_tag = #{record.deleteTag,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
<!--@mbg.generated-->
update company_tna_personnel
set id = #{record.id,jdbcType=VARCHAR},
company_id = #{record.companyId,jdbcType=VARCHAR},
stat_date = #{record.statDate,jdbcType=DATE},
trust_fund_asset_size = #{record.trustFundAssetSize,jdbcType=DECIMAL},
special_account_asset_size = #{record.specialAccountAssetSize,jdbcType=DECIMAL},
ltdco_fund_asset_size = #{record.ltdcoFundAssetSize,jdbcType=DECIMAL},
offshore_fund_asset_size = #{record.offshoreFundAssetSize,jdbcType=DECIMAL},
fund_num = #{record.fundNum,jdbcType=INTEGER},
staff_num = #{record.staffNum,jdbcType=INTEGER},
analyst_num = #{record.analystNum,jdbcType=INTEGER},
total_asset_size = #{record.totalAssetSize,jdbcType=DECIMAL},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
delete_tag = #{record.deleteTag,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.CompanyTnaPersonnel">
<!--@mbg.generated-->
update company_tna_personnel
<set>
<if test="companyId != null">
company_id = #{companyId,jdbcType=VARCHAR},
</if>
<if test="statDate != null">
stat_date = #{statDate,jdbcType=DATE},
</if>
<if test="trustFundAssetSize != null">
trust_fund_asset_size = #{trustFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="specialAccountAssetSize != null">
special_account_asset_size = #{specialAccountAssetSize,jdbcType=DECIMAL},
</if>
<if test="ltdcoFundAssetSize != null">
ltdco_fund_asset_size = #{ltdcoFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="offshoreFundAssetSize != null">
offshore_fund_asset_size = #{offshoreFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="fundNum != null">
fund_num = #{fundNum,jdbcType=INTEGER},
</if>
<if test="staffNum != null">
staff_num = #{staffNum,jdbcType=INTEGER},
</if>
<if test="analystNum != null">
analyst_num = #{analystNum,jdbcType=INTEGER},
</if>
<if test="totalAssetSize != null">
total_asset_size = #{totalAssetSize,jdbcType=DECIMAL},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="deleteTag != null">
delete_tag = #{deleteTag,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.CompanyTnaPersonnel">
<!--@mbg.generated-->
update company_tna_personnel
set company_id = #{companyId,jdbcType=VARCHAR},
stat_date = #{statDate,jdbcType=DATE},
trust_fund_asset_size = #{trustFundAssetSize,jdbcType=DECIMAL},
special_account_asset_size = #{specialAccountAssetSize,jdbcType=DECIMAL},
ltdco_fund_asset_size = #{ltdcoFundAssetSize,jdbcType=DECIMAL},
offshore_fund_asset_size = #{offshoreFundAssetSize,jdbcType=DECIMAL},
fund_num = #{fundNum,jdbcType=INTEGER},
staff_num = #{staffNum,jdbcType=INTEGER},
analyst_num = #{analystNum,jdbcType=INTEGER},
total_asset_size = #{totalAssetSize,jdbcType=DECIMAL},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
delete_tag = #{deleteTag,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update company_tna_personnel
<trim prefix="set" suffixOverrides=",">
<trim prefix="company_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="stat_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.statDate,jdbcType=DATE}
</foreach>
</trim>
<trim prefix="trust_fund_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.trustFundAssetSize,jdbcType=DECIMAL}
</foreach>
</trim>
<trim prefix="special_account_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.specialAccountAssetSize,jdbcType=DECIMAL}
</foreach>
</trim>
<trim prefix="ltdco_fund_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ltdcoFundAssetSize,jdbcType=DECIMAL}
</foreach>
</trim>
<trim prefix="offshore_fund_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.offshoreFundAssetSize,jdbcType=DECIMAL}
</foreach>
</trim>
<trim prefix="fund_num = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundNum,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="staff_num = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.staffNum,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="analyst_num = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.analystNum,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="total_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.totalAssetSize,jdbcType=DECIMAL}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="delete_tag = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=VARCHAR}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update company_tna_personnel
<trim prefix="set" suffixOverrides=",">
<trim prefix="company_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="stat_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.statDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.statDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="trust_fund_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.trustFundAssetSize != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.trustFundAssetSize,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="special_account_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.specialAccountAssetSize != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.specialAccountAssetSize,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="ltdco_fund_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.ltdcoFundAssetSize != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.ltdcoFundAssetSize,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="offshore_fund_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.offshoreFundAssetSize != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.offshoreFundAssetSize,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="fund_num = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.fundNum != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.fundNum,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="staff_num = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.staffNum != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.staffNum,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="analyst_num = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.analystNum != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.analystNum,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="total_asset_size = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.totalAssetSize != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.totalAssetSize,jdbcType=DECIMAL}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="delete_tag = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.deleteTag != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=VARCHAR}
</foreach>
</update>
<insert id="batchInsert" parameterType="map">
<!--@mbg.generated-->
insert into company_tna_personnel
(id, company_id, stat_date, trust_fund_asset_size, special_account_asset_size, ltdco_fund_asset_size,
offshore_fund_asset_size, fund_num, staff_num, analyst_num, total_asset_size, create_by,
create_time, update_by, update_time, delete_tag)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=VARCHAR}, #{item.companyId,jdbcType=VARCHAR}, #{item.statDate,jdbcType=DATE},
#{item.trustFundAssetSize,jdbcType=DECIMAL}, #{item.specialAccountAssetSize,jdbcType=DECIMAL},
#{item.ltdcoFundAssetSize,jdbcType=DECIMAL}, #{item.offshoreFundAssetSize,jdbcType=DECIMAL},
#{item.fundNum,jdbcType=INTEGER}, #{item.staffNum,jdbcType=INTEGER}, #{item.analystNum,jdbcType=INTEGER},
#{item.totalAssetSize,jdbcType=DECIMAL}, #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
#{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteTag,jdbcType=INTEGER}
)
</foreach>
</insert>
<insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.CompanyTnaPersonnel">
<!--@mbg.generated-->
insert into company_tna_personnel
(id, company_id, stat_date, trust_fund_asset_size, special_account_asset_size, ltdco_fund_asset_size,
offshore_fund_asset_size, fund_num, staff_num, analyst_num, total_asset_size, create_by,
create_time, update_by, update_time, delete_tag)
values
(#{id,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{statDate,jdbcType=DATE},
#{trustFundAssetSize,jdbcType=DECIMAL}, #{specialAccountAssetSize,jdbcType=DECIMAL},
#{ltdcoFundAssetSize,jdbcType=DECIMAL}, #{offshoreFundAssetSize,jdbcType=DECIMAL},
#{fundNum,jdbcType=INTEGER}, #{staffNum,jdbcType=INTEGER}, #{analystNum,jdbcType=INTEGER},
#{totalAssetSize,jdbcType=DECIMAL}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}
)
on duplicate key update
id = #{id,jdbcType=VARCHAR},
company_id = #{companyId,jdbcType=VARCHAR},
stat_date = #{statDate,jdbcType=DATE},
trust_fund_asset_size = #{trustFundAssetSize,jdbcType=DECIMAL},
special_account_asset_size = #{specialAccountAssetSize,jdbcType=DECIMAL},
ltdco_fund_asset_size = #{ltdcoFundAssetSize,jdbcType=DECIMAL},
offshore_fund_asset_size = #{offshoreFundAssetSize,jdbcType=DECIMAL},
fund_num = #{fundNum,jdbcType=INTEGER},
staff_num = #{staffNum,jdbcType=INTEGER},
analyst_num = #{analystNum,jdbcType=INTEGER},
total_asset_size = #{totalAssetSize,jdbcType=DECIMAL},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
delete_tag = #{deleteTag,jdbcType=INTEGER}
</insert>
<insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.CompanyTnaPersonnel">
<!--@mbg.generated-->
insert into company_tna_personnel
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="companyId != null">
company_id,
</if>
<if test="statDate != null">
stat_date,
</if>
<if test="trustFundAssetSize != null">
trust_fund_asset_size,
</if>
<if test="specialAccountAssetSize != null">
special_account_asset_size,
</if>
<if test="ltdcoFundAssetSize != null">
ltdco_fund_asset_size,
</if>
<if test="offshoreFundAssetSize != null">
offshore_fund_asset_size,
</if>
<if test="fundNum != null">
fund_num,
</if>
<if test="staffNum != null">
staff_num,
</if>
<if test="analystNum != null">
analyst_num,
</if>
<if test="totalAssetSize != null">
total_asset_size,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="deleteTag != null">
delete_tag,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="companyId != null">
#{companyId,jdbcType=VARCHAR},
</if>
<if test="statDate != null">
#{statDate,jdbcType=DATE},
</if>
<if test="trustFundAssetSize != null">
#{trustFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="specialAccountAssetSize != null">
#{specialAccountAssetSize,jdbcType=DECIMAL},
</if>
<if test="ltdcoFundAssetSize != null">
#{ltdcoFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="offshoreFundAssetSize != null">
#{offshoreFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="fundNum != null">
#{fundNum,jdbcType=INTEGER},
</if>
<if test="staffNum != null">
#{staffNum,jdbcType=INTEGER},
</if>
<if test="analystNum != null">
#{analystNum,jdbcType=INTEGER},
</if>
<if test="totalAssetSize != null">
#{totalAssetSize,jdbcType=DECIMAL},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="deleteTag != null">
#{deleteTag,jdbcType=INTEGER},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=VARCHAR},
</if>
<if test="companyId != null">
company_id = #{companyId,jdbcType=VARCHAR},
</if>
<if test="statDate != null">
stat_date = #{statDate,jdbcType=DATE},
</if>
<if test="trustFundAssetSize != null">
trust_fund_asset_size = #{trustFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="specialAccountAssetSize != null">
special_account_asset_size = #{specialAccountAssetSize,jdbcType=DECIMAL},
</if>
<if test="ltdcoFundAssetSize != null">
ltdco_fund_asset_size = #{ltdcoFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="offshoreFundAssetSize != null">
offshore_fund_asset_size = #{offshoreFundAssetSize,jdbcType=DECIMAL},
</if>
<if test="fundNum != null">
fund_num = #{fundNum,jdbcType=INTEGER},
</if>
<if test="staffNum != null">
staff_num = #{staffNum,jdbcType=INTEGER},
</if>
<if test="analystNum != null">
analyst_num = #{analystNum,jdbcType=INTEGER},
</if>
<if test="totalAssetSize != null">
total_asset_size = #{totalAssetSize,jdbcType=DECIMAL},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="deleteTag != null">
delete_tag = #{deleteTag,jdbcType=INTEGER},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
<?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.tanpu.fund.mapper.generator.PersonCompanyPositionMappingMapper">
<resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.PersonCompanyPositionMapping">
<!--@mbg.generated-->
<!--@Table person_company_position_mapping-->
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="personnel_id" jdbcType="VARCHAR" property="personnelId" />
<result column="company_id" jdbcType="VARCHAR" property="companyId" />
<result column="personnel_type" jdbcType="INTEGER" property="personnelType" />
<result column="position" jdbcType="VARCHAR" property="position" />
<result column="department" jdbcType="VARCHAR" property="department" />
<result column="is_default" jdbcType="INTEGER" property="isDefault" />
<result column="start_date" jdbcType="DATE" property="startDate" />
<result column="end_date" jdbcType="DATE" property="endDate" />
<result column="position_order" jdbcType="INTEGER" property="positionOrder" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="delete_tag" jdbcType="INTEGER" property="deleteTag" />
</resultMap>
<sql id="Example_Where_Clause">
<!--@mbg.generated-->
<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">
<!--@mbg.generated-->
<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">
<!--@mbg.generated-->
id, personnel_id, company_id, personnel_type, `position`, department, is_default,
start_date, end_date, position_order, create_by, create_time, update_by, update_time,
delete_tag
</sql>
<select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.PersonCompanyPositionMappingExample" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from person_company_position_mapping
<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">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from person_company_position_mapping
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
<!--@mbg.generated-->
delete from person_company_position_mapping
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.PersonCompanyPositionMappingExample">
<!--@mbg.generated-->
delete from person_company_position_mapping
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.tanpu.fund.entity.generator.PersonCompanyPositionMapping">
<!--@mbg.generated-->
insert into person_company_position_mapping (id, personnel_id, company_id,
personnel_type, `position`, department,
is_default, start_date, end_date,
position_order, create_by, create_time,
update_by, update_time, delete_tag
)
values (#{id,jdbcType=VARCHAR}, #{personnelId,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR},
#{personnelType,jdbcType=INTEGER}, #{position,jdbcType=VARCHAR}, #{department,jdbcType=VARCHAR},
#{isDefault,jdbcType=INTEGER}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE},
#{positionOrder,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.PersonCompanyPositionMapping">
<!--@mbg.generated-->
insert into person_company_position_mapping
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="personnelId != null">
personnel_id,
</if>
<if test="companyId != null">
company_id,
</if>
<if test="personnelType != null">
personnel_type,
</if>
<if test="position != null">
`position`,
</if>
<if test="department != null">
department,
</if>
<if test="isDefault != null">
is_default,
</if>
<if test="startDate != null">
start_date,
</if>
<if test="endDate != null">
end_date,
</if>
<if test="positionOrder != null">
position_order,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="deleteTag != null">
delete_tag,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="personnelId != null">
#{personnelId,jdbcType=VARCHAR},
</if>
<if test="companyId != null">
#{companyId,jdbcType=VARCHAR},
</if>
<if test="personnelType != null">
#{personnelType,jdbcType=INTEGER},
</if>
<if test="position != null">
#{position,jdbcType=VARCHAR},
</if>
<if test="department != null">
#{department,jdbcType=VARCHAR},
</if>
<if test="isDefault != null">
#{isDefault,jdbcType=INTEGER},
</if>
<if test="startDate != null">
#{startDate,jdbcType=DATE},
</if>
<if test="endDate != null">
#{endDate,jdbcType=DATE},
</if>
<if test="positionOrder != null">
#{positionOrder,jdbcType=INTEGER},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="deleteTag != null">
#{deleteTag,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.tanpu.fund.entity.generator.PersonCompanyPositionMappingExample" resultType="java.lang.Long">
<!--@mbg.generated-->
select count(*) from person_company_position_mapping
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
<!--@mbg.generated-->
update person_company_position_mapping
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.personnelId != null">
personnel_id = #{record.personnelId,jdbcType=VARCHAR},
</if>
<if test="record.companyId != null">
company_id = #{record.companyId,jdbcType=VARCHAR},
</if>
<if test="record.personnelType != null">
personnel_type = #{record.personnelType,jdbcType=INTEGER},
</if>
<if test="record.position != null">
`position` = #{record.position,jdbcType=VARCHAR},
</if>
<if test="record.department != null">
department = #{record.department,jdbcType=VARCHAR},
</if>
<if test="record.isDefault != null">
is_default = #{record.isDefault,jdbcType=INTEGER},
</if>
<if test="record.startDate != null">
start_date = #{record.startDate,jdbcType=DATE},
</if>
<if test="record.endDate != null">
end_date = #{record.endDate,jdbcType=DATE},
</if>
<if test="record.positionOrder != null">
position_order = #{record.positionOrder,jdbcType=INTEGER},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.deleteTag != null">
delete_tag = #{record.deleteTag,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
<!--@mbg.generated-->
update person_company_position_mapping
set id = #{record.id,jdbcType=VARCHAR},
personnel_id = #{record.personnelId,jdbcType=VARCHAR},
company_id = #{record.companyId,jdbcType=VARCHAR},
personnel_type = #{record.personnelType,jdbcType=INTEGER},
`position` = #{record.position,jdbcType=VARCHAR},
department = #{record.department,jdbcType=VARCHAR},
is_default = #{record.isDefault,jdbcType=INTEGER},
start_date = #{record.startDate,jdbcType=DATE},
end_date = #{record.endDate,jdbcType=DATE},
position_order = #{record.positionOrder,jdbcType=INTEGER},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
delete_tag = #{record.deleteTag,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.PersonCompanyPositionMapping">
<!--@mbg.generated-->
update person_company_position_mapping
<set>
<if test="personnelId != null">
personnel_id = #{personnelId,jdbcType=VARCHAR},
</if>
<if test="companyId != null">
company_id = #{companyId,jdbcType=VARCHAR},
</if>
<if test="personnelType != null">
personnel_type = #{personnelType,jdbcType=INTEGER},
</if>
<if test="position != null">
`position` = #{position,jdbcType=VARCHAR},
</if>
<if test="department != null">
department = #{department,jdbcType=VARCHAR},
</if>
<if test="isDefault != null">
is_default = #{isDefault,jdbcType=INTEGER},
</if>
<if test="startDate != null">
start_date = #{startDate,jdbcType=DATE},
</if>
<if test="endDate != null">
end_date = #{endDate,jdbcType=DATE},
</if>
<if test="positionOrder != null">
position_order = #{positionOrder,jdbcType=INTEGER},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="deleteTag != null">
delete_tag = #{deleteTag,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.PersonCompanyPositionMapping">
<!--@mbg.generated-->
update person_company_position_mapping
set personnel_id = #{personnelId,jdbcType=VARCHAR},
company_id = #{companyId,jdbcType=VARCHAR},
personnel_type = #{personnelType,jdbcType=INTEGER},
`position` = #{position,jdbcType=VARCHAR},
department = #{department,jdbcType=VARCHAR},
is_default = #{isDefault,jdbcType=INTEGER},
start_date = #{startDate,jdbcType=DATE},
end_date = #{endDate,jdbcType=DATE},
position_order = #{positionOrder,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
delete_tag = #{deleteTag,jdbcType=INTEGER}
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update person_company_position_mapping
<trim prefix="set" suffixOverrides=",">
<trim prefix="personnel_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.personnelId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="company_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyId,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="personnel_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.personnelType,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="`position` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.position,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="department = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.department,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="is_default = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isDefault,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="start_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.startDate,jdbcType=DATE}
</foreach>
</trim>
<trim prefix="end_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.endDate,jdbcType=DATE}
</foreach>
</trim>
<trim prefix="position_order = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.positionOrder,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
</foreach>
</trim>
<trim prefix="delete_tag = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=VARCHAR}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update person_company_position_mapping
<trim prefix="set" suffixOverrides=",">
<trim prefix="personnel_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.personnelId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.personnelId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="company_id = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.companyId != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.companyId,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="personnel_type = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.personnelType != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.personnelType,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="`position` = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.position != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.position,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="department = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.department != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.department,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="is_default = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.isDefault != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.isDefault,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="start_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.startDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.startDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="end_date = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.endDate != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.endDate,jdbcType=DATE}
</if>
</foreach>
</trim>
<trim prefix="position_order = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.positionOrder != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.positionOrder,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="create_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createBy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createBy,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="create_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.createTime != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="update_by = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateBy != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateBy,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="update_time = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.updateTime != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
</if>
</foreach>
</trim>
<trim prefix="delete_tag = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.deleteTag != null">
when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=VARCHAR}
</foreach>
</update>
<insert id="batchInsert" parameterType="map">
<!--@mbg.generated-->
insert into person_company_position_mapping
(id, personnel_id, company_id, personnel_type, `position`, department, is_default,
start_date, end_date, position_order, create_by, create_time, update_by, update_time,
delete_tag)
values
<foreach collection="list" item="item" separator=",">
(#{item.id,jdbcType=VARCHAR}, #{item.personnelId,jdbcType=VARCHAR}, #{item.companyId,jdbcType=VARCHAR},
#{item.personnelType,jdbcType=INTEGER}, #{item.position,jdbcType=VARCHAR}, #{item.department,jdbcType=VARCHAR},
#{item.isDefault,jdbcType=INTEGER}, #{item.startDate,jdbcType=DATE}, #{item.endDate,jdbcType=DATE},
#{item.positionOrder,jdbcType=INTEGER}, #{item.createBy,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP},
#{item.updateBy,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteTag,jdbcType=INTEGER}
)
</foreach>
</insert>
<insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.PersonCompanyPositionMapping">
<!--@mbg.generated-->
insert into person_company_position_mapping
(id, personnel_id, company_id, personnel_type, `position`, department, is_default,
start_date, end_date, position_order, create_by, create_time, update_by, update_time,
delete_tag)
values
(#{id,jdbcType=VARCHAR}, #{personnelId,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR},
#{personnelType,jdbcType=INTEGER}, #{position,jdbcType=VARCHAR}, #{department,jdbcType=VARCHAR},
#{isDefault,jdbcType=INTEGER}, #{startDate,jdbcType=DATE}, #{endDate,jdbcType=DATE},
#{positionOrder,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}
)
on duplicate key update
id = #{id,jdbcType=VARCHAR},
personnel_id = #{personnelId,jdbcType=VARCHAR},
company_id = #{companyId,jdbcType=VARCHAR},
personnel_type = #{personnelType,jdbcType=INTEGER},
`position` = #{position,jdbcType=VARCHAR},
department = #{department,jdbcType=VARCHAR},
is_default = #{isDefault,jdbcType=INTEGER},
start_date = #{startDate,jdbcType=DATE},
end_date = #{endDate,jdbcType=DATE},
position_order = #{positionOrder,jdbcType=INTEGER},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
delete_tag = #{deleteTag,jdbcType=INTEGER}
</insert>
<insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.PersonCompanyPositionMapping">
<!--@mbg.generated-->
insert into person_company_position_mapping
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="personnelId != null">
personnel_id,
</if>
<if test="companyId != null">
company_id,
</if>
<if test="personnelType != null">
personnel_type,
</if>
<if test="position != null">
`position`,
</if>
<if test="department != null">
department,
</if>
<if test="isDefault != null">
is_default,
</if>
<if test="startDate != null">
start_date,
</if>
<if test="endDate != null">
end_date,
</if>
<if test="positionOrder != null">
position_order,
</if>
<if test="createBy != null">
create_by,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateBy != null">
update_by,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="deleteTag != null">
delete_tag,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="personnelId != null">
#{personnelId,jdbcType=VARCHAR},
</if>
<if test="companyId != null">
#{companyId,jdbcType=VARCHAR},
</if>
<if test="personnelType != null">
#{personnelType,jdbcType=INTEGER},
</if>
<if test="position != null">
#{position,jdbcType=VARCHAR},
</if>
<if test="department != null">
#{department,jdbcType=VARCHAR},
</if>
<if test="isDefault != null">
#{isDefault,jdbcType=INTEGER},
</if>
<if test="startDate != null">
#{startDate,jdbcType=DATE},
</if>
<if test="endDate != null">
#{endDate,jdbcType=DATE},
</if>
<if test="positionOrder != null">
#{positionOrder,jdbcType=INTEGER},
</if>
<if test="createBy != null">
#{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
#{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="deleteTag != null">
#{deleteTag,jdbcType=INTEGER},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=VARCHAR},
</if>
<if test="personnelId != null">
personnel_id = #{personnelId,jdbcType=VARCHAR},
</if>
<if test="companyId != null">
company_id = #{companyId,jdbcType=VARCHAR},
</if>
<if test="personnelType != null">
personnel_type = #{personnelType,jdbcType=INTEGER},
</if>
<if test="position != null">
`position` = #{position,jdbcType=VARCHAR},
</if>
<if test="department != null">
department = #{department,jdbcType=VARCHAR},
</if>
<if test="isDefault != null">
is_default = #{isDefault,jdbcType=INTEGER},
</if>
<if test="startDate != null">
start_date = #{startDate,jdbcType=DATE},
</if>
<if test="endDate != null">
end_date = #{endDate,jdbcType=DATE},
</if>
<if test="positionOrder != null">
position_order = #{positionOrder,jdbcType=INTEGER},
</if>
<if test="createBy != null">
create_by = #{createBy,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateBy != null">
update_by = #{updateBy,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="deleteTag != null">
delete_tag = #{deleteTag,jdbcType=INTEGER},
</if>
</trim>
</insert>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment