From 99347f821a2f25766f1e90adcb176d99d1c61f92 Mon Sep 17 00:00:00 2001 From: "@t2652009480" <2652009480@qq.com> Date: Wed, 22 Jan 2025 09:51:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E6=B6=88=E8=B4=B9=E8=B4=B7?= =?UTF-8?q?=E6=AC=BE=E4=B8=9A=E5=8A=A1-=E5=BD=95=E5=85=A5=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF&=E5=BC=80=E8=AE=BE=E6=B4=BB?= =?UTF-8?q?=E6=9C=9F=E8=B4=A6=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stu/PersonalLoanController.java | 90 + .../entity/PerConsumerLoanCurrentAccount.java | 221 ++ .../PerConsumerLoanCurrentAccountExample.java | 1450 ++++++++++++ .../entity/PerConsumerLoanCustomerInfo.java | 305 +++ .../PerConsumerLoanCustomerInfoExample.java | 1950 +++++++++++++++++ ...erConsumerLoanCurrentAccountAnswerDTO.java | 31 + .../PerConsumerLoanCustomerInfoAnswerDTO.java | 38 + .../PerConsumerLoanCurrentAccountMapper.java | 30 + .../PerConsumerLoanCustomerInfoMapper.java | 30 + .../bank/service/PersonalLoanService.java | 22 + .../service/impl/PersonalLoanServiceImpl.java | 297 +++ .../util/compute/ObjectComparatorUtil.java | 42 + .../PerConsumerLoanCurrentAccountMapper.xml | 434 ++++ .../PerConsumerLoanCustomerInfoMapper.xml | 544 +++++ 14 files changed, 5484 insertions(+) create mode 100644 src/main/java/com/sztzjy/bank/controller/stu/PersonalLoanController.java create mode 100644 src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCurrentAccount.java create mode 100644 src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCurrentAccountExample.java create mode 100644 src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCustomerInfo.java create mode 100644 src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCustomerInfoExample.java create mode 100644 src/main/java/com/sztzjy/bank/entity/dto/PerConsumerLoanCurrentAccountAnswerDTO.java create mode 100644 src/main/java/com/sztzjy/bank/entity/dto/PerConsumerLoanCustomerInfoAnswerDTO.java create mode 100644 src/main/java/com/sztzjy/bank/mapper/PerConsumerLoanCurrentAccountMapper.java create mode 100644 src/main/java/com/sztzjy/bank/mapper/PerConsumerLoanCustomerInfoMapper.java create mode 100644 src/main/java/com/sztzjy/bank/service/PersonalLoanService.java create mode 100644 src/main/java/com/sztzjy/bank/service/impl/PersonalLoanServiceImpl.java create mode 100644 src/main/java/com/sztzjy/bank/util/compute/ObjectComparatorUtil.java create mode 100644 src/main/resources/mappers/PerConsumerLoanCurrentAccountMapper.xml create mode 100644 src/main/resources/mappers/PerConsumerLoanCustomerInfoMapper.xml diff --git a/src/main/java/com/sztzjy/bank/controller/stu/PersonalLoanController.java b/src/main/java/com/sztzjy/bank/controller/stu/PersonalLoanController.java new file mode 100644 index 0000000..10e1093 --- /dev/null +++ b/src/main/java/com/sztzjy/bank/controller/stu/PersonalLoanController.java @@ -0,0 +1,90 @@ +package com.sztzjy.bank.controller.stu; + +import com.sztzjy.bank.annotation.AnonymousAccess; +import com.sztzjy.bank.entity.CustomerInformation; +import com.sztzjy.bank.entity.PerConsumerLoanCurrentAccount; +import com.sztzjy.bank.entity.PerConsumerLoanCustomerInfo; +import com.sztzjy.bank.service.PersonalLoanService; +import com.sztzjy.bank.util.ResultEntity; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.validation.Valid; + +/** + * @author tz + * @date 2025/1/15 15:40 + */ +@Api(tags = "个人消费贷款业务") +@RequestMapping("api/personalLoan") +@RestController +@Validated +public class PersonalLoanController { + + @Autowired + PersonalLoanService loanService; + + @AnonymousAccess + @ApiOperation("录入客户信息-提交/保存") + @PostMapping("submitCustomerInfo") + public ResultEntity submitCustomerInfo(@Valid @RequestBody PerConsumerLoanCustomerInfo loanCustomerInfo) { + + Integer i = loanService.submitCustomerInfo(loanCustomerInfo); + + String type; + if(loanCustomerInfo.getSubmitStatus()==1){ + type="提交"; + }else { + type="保存"; + } + if(i>0){ + return new ResultEntity<>(HttpStatus.OK,type+"成功"); + }else { + return new ResultEntity<>(HttpStatus.OK,type+"失败"); + } + } + + @AnonymousAccess + @ApiOperation("录入客户信息-操作记录回显") + @GetMapping("getCustomerInfo") + public ResultEntity getCustomerInfo(@ApiParam("用户ID") String userId, + @ApiParam("案例序号") Integer number) { + + return new ResultEntity(loanService.getCustomerInfo(userId,number)); + } + + @AnonymousAccess + @ApiOperation("开设活期账户-提交/保存") + @PostMapping("submitCurrentAccount") + public ResultEntity submitCurrentAccount(@Valid @RequestBody PerConsumerLoanCurrentAccount currentAccount) { + + Integer i = loanService.submitCurrentAccount(currentAccount); + + String type; + if(currentAccount.getSubmitStatus()==1){ + type="提交"; + }else { + type="保存"; + } + if(i>0){ + return new ResultEntity<>(HttpStatus.OK,type+"成功"); + }else { + return new ResultEntity<>(HttpStatus.OK,type+"失败"); + } + } + + @AnonymousAccess + @ApiOperation("开设活期账户-操作记录回显") + @GetMapping("getCustomerInfo") + public ResultEntity getCurrentAccount(@ApiParam("用户ID") String userId, + @ApiParam("案例序号") Integer number) { + + return new ResultEntity(loanService.getCurrentAccount(userId,number)); + } + +} diff --git a/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCurrentAccount.java b/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCurrentAccount.java new file mode 100644 index 0000000..eb2925a --- /dev/null +++ b/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCurrentAccount.java @@ -0,0 +1,221 @@ +package com.sztzjy.bank.entity; + +import java.util.Date; + +import io.swagger.annotations.ApiModelProperty; +/** + * 个人消费贷款业务-活期账户信息 + * + * @author whb + * per_consumer_loan_current_account + */ +public class PerConsumerLoanCurrentAccount { + @ApiModelProperty(notes = "ID") + private String id; + + @ApiModelProperty(notes = "客户姓名") + private String customerName; + + @ApiModelProperty(notes = "客户号") + private Integer customerNo; + + @ApiModelProperty(notes = "币种") + private String currency; + + @ApiModelProperty(notes = "钞汇标志") + private String currencyExchangeSymbol; + + @ApiModelProperty(notes = "分级类型") + private String classificationType; + + @ApiModelProperty(notes = "账户性质") + private String natureOfAccount; + + @ApiModelProperty(notes = "凭证类型") + private String voucherType; + + @ApiModelProperty(notes = "支取方式") + private String withdrawalMethod; + + @ApiModelProperty(notes = "支取密码") + private String withdrawalPassword; + + @ApiModelProperty(notes = "确认密码") + private String confirmPassword; + + @ApiModelProperty(notes = "银行卡号") + private Integer bankCardNumber; + + @ApiModelProperty(notes = "创建时间") + private Date createTime; + + @ApiModelProperty(notes = "更新时间") + private Date updateTime; + + @ApiModelProperty(notes = "保存状态(0未保存、1已保存)") + private Integer saveStatus; + + @ApiModelProperty(notes = "提交状态(0未提交、1已提交)") + private Integer submitStatus; + + @ApiModelProperty(notes = "用户ID") + private String userId; + + @ApiModelProperty(notes = "错误次数") + private Integer errorNumber; + + @ApiModelProperty(notes = "第几套案例(1、2、3)") + private Integer number; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + public String getCustomerName() { + return customerName; + } + + public void setCustomerName(String customerName) { + this.customerName = customerName == null ? null : customerName.trim(); + } + + public Integer getCustomerNo() { + return customerNo; + } + + public void setCustomerNo(Integer customerNo) { + this.customerNo = customerNo; + } + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency == null ? null : currency.trim(); + } + + public String getCurrencyExchangeSymbol() { + return currencyExchangeSymbol; + } + + public void setCurrencyExchangeSymbol(String currencyExchangeSymbol) { + this.currencyExchangeSymbol = currencyExchangeSymbol == null ? null : currencyExchangeSymbol.trim(); + } + + public String getClassificationType() { + return classificationType; + } + + public void setClassificationType(String classificationType) { + this.classificationType = classificationType == null ? null : classificationType.trim(); + } + + public String getNatureOfAccount() { + return natureOfAccount; + } + + public void setNatureOfAccount(String natureOfAccount) { + this.natureOfAccount = natureOfAccount == null ? null : natureOfAccount.trim(); + } + + public String getVoucherType() { + return voucherType; + } + + public void setVoucherType(String voucherType) { + this.voucherType = voucherType == null ? null : voucherType.trim(); + } + + public String getWithdrawalMethod() { + return withdrawalMethod; + } + + public void setWithdrawalMethod(String withdrawalMethod) { + this.withdrawalMethod = withdrawalMethod == null ? null : withdrawalMethod.trim(); + } + + public String getWithdrawalPassword() { + return withdrawalPassword; + } + + public void setWithdrawalPassword(String withdrawalPassword) { + this.withdrawalPassword = withdrawalPassword == null ? null : withdrawalPassword.trim(); + } + + public String getConfirmPassword() { + return confirmPassword; + } + + public void setConfirmPassword(String confirmPassword) { + this.confirmPassword = confirmPassword == null ? null : confirmPassword.trim(); + } + + public Integer getBankCardNumber() { + return bankCardNumber; + } + + public void setBankCardNumber(Integer bankCardNumber) { + this.bankCardNumber = bankCardNumber; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public Integer getSaveStatus() { + return saveStatus; + } + + public void setSaveStatus(Integer saveStatus) { + this.saveStatus = saveStatus; + } + + public Integer getSubmitStatus() { + return submitStatus; + } + + public void setSubmitStatus(Integer submitStatus) { + this.submitStatus = submitStatus; + } + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId == null ? null : userId.trim(); + } + + public Integer getErrorNumber() { + return errorNumber; + } + + public void setErrorNumber(Integer errorNumber) { + this.errorNumber = errorNumber; + } + + public Integer getNumber() { + return number; + } + + public void setNumber(Integer number) { + this.number = number; + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCurrentAccountExample.java b/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCurrentAccountExample.java new file mode 100644 index 0000000..eeb4668 --- /dev/null +++ b/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCurrentAccountExample.java @@ -0,0 +1,1450 @@ +package com.sztzjy.bank.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class PerConsumerLoanCurrentAccountExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PerConsumerLoanCurrentAccountExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andCustomerNameIsNull() { + addCriterion("customer_name is null"); + return (Criteria) this; + } + + public Criteria andCustomerNameIsNotNull() { + addCriterion("customer_name is not null"); + return (Criteria) this; + } + + public Criteria andCustomerNameEqualTo(String value) { + addCriterion("customer_name =", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameNotEqualTo(String value) { + addCriterion("customer_name <>", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameGreaterThan(String value) { + addCriterion("customer_name >", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameGreaterThanOrEqualTo(String value) { + addCriterion("customer_name >=", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameLessThan(String value) { + addCriterion("customer_name <", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameLessThanOrEqualTo(String value) { + addCriterion("customer_name <=", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameLike(String value) { + addCriterion("customer_name like", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameNotLike(String value) { + addCriterion("customer_name not like", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameIn(List values) { + addCriterion("customer_name in", values, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameNotIn(List values) { + addCriterion("customer_name not in", values, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameBetween(String value1, String value2) { + addCriterion("customer_name between", value1, value2, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameNotBetween(String value1, String value2) { + addCriterion("customer_name not between", value1, value2, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNoIsNull() { + addCriterion("customer_no is null"); + return (Criteria) this; + } + + public Criteria andCustomerNoIsNotNull() { + addCriterion("customer_no is not null"); + return (Criteria) this; + } + + public Criteria andCustomerNoEqualTo(Integer value) { + addCriterion("customer_no =", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoNotEqualTo(Integer value) { + addCriterion("customer_no <>", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoGreaterThan(Integer value) { + addCriterion("customer_no >", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoGreaterThanOrEqualTo(Integer value) { + addCriterion("customer_no >=", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoLessThan(Integer value) { + addCriterion("customer_no <", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoLessThanOrEqualTo(Integer value) { + addCriterion("customer_no <=", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoIn(List values) { + addCriterion("customer_no in", values, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoNotIn(List values) { + addCriterion("customer_no not in", values, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoBetween(Integer value1, Integer value2) { + addCriterion("customer_no between", value1, value2, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoNotBetween(Integer value1, Integer value2) { + addCriterion("customer_no not between", value1, value2, "customerNo"); + return (Criteria) this; + } + + public Criteria andCurrencyIsNull() { + addCriterion("currency is null"); + return (Criteria) this; + } + + public Criteria andCurrencyIsNotNull() { + addCriterion("currency is not null"); + return (Criteria) this; + } + + public Criteria andCurrencyEqualTo(String value) { + addCriterion("currency =", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyNotEqualTo(String value) { + addCriterion("currency <>", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyGreaterThan(String value) { + addCriterion("currency >", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyGreaterThanOrEqualTo(String value) { + addCriterion("currency >=", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyLessThan(String value) { + addCriterion("currency <", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyLessThanOrEqualTo(String value) { + addCriterion("currency <=", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyLike(String value) { + addCriterion("currency like", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyNotLike(String value) { + addCriterion("currency not like", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyIn(List values) { + addCriterion("currency in", values, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyNotIn(List values) { + addCriterion("currency not in", values, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyBetween(String value1, String value2) { + addCriterion("currency between", value1, value2, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyNotBetween(String value1, String value2) { + addCriterion("currency not between", value1, value2, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolIsNull() { + addCriterion("currency_exchange_symbol is null"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolIsNotNull() { + addCriterion("currency_exchange_symbol is not null"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolEqualTo(String value) { + addCriterion("currency_exchange_symbol =", value, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolNotEqualTo(String value) { + addCriterion("currency_exchange_symbol <>", value, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolGreaterThan(String value) { + addCriterion("currency_exchange_symbol >", value, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolGreaterThanOrEqualTo(String value) { + addCriterion("currency_exchange_symbol >=", value, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolLessThan(String value) { + addCriterion("currency_exchange_symbol <", value, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolLessThanOrEqualTo(String value) { + addCriterion("currency_exchange_symbol <=", value, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolLike(String value) { + addCriterion("currency_exchange_symbol like", value, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolNotLike(String value) { + addCriterion("currency_exchange_symbol not like", value, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolIn(List values) { + addCriterion("currency_exchange_symbol in", values, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolNotIn(List values) { + addCriterion("currency_exchange_symbol not in", values, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolBetween(String value1, String value2) { + addCriterion("currency_exchange_symbol between", value1, value2, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andCurrencyExchangeSymbolNotBetween(String value1, String value2) { + addCriterion("currency_exchange_symbol not between", value1, value2, "currencyExchangeSymbol"); + return (Criteria) this; + } + + public Criteria andClassificationTypeIsNull() { + addCriterion("classification_type is null"); + return (Criteria) this; + } + + public Criteria andClassificationTypeIsNotNull() { + addCriterion("classification_type is not null"); + return (Criteria) this; + } + + public Criteria andClassificationTypeEqualTo(String value) { + addCriterion("classification_type =", value, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeNotEqualTo(String value) { + addCriterion("classification_type <>", value, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeGreaterThan(String value) { + addCriterion("classification_type >", value, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeGreaterThanOrEqualTo(String value) { + addCriterion("classification_type >=", value, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeLessThan(String value) { + addCriterion("classification_type <", value, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeLessThanOrEqualTo(String value) { + addCriterion("classification_type <=", value, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeLike(String value) { + addCriterion("classification_type like", value, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeNotLike(String value) { + addCriterion("classification_type not like", value, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeIn(List values) { + addCriterion("classification_type in", values, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeNotIn(List values) { + addCriterion("classification_type not in", values, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeBetween(String value1, String value2) { + addCriterion("classification_type between", value1, value2, "classificationType"); + return (Criteria) this; + } + + public Criteria andClassificationTypeNotBetween(String value1, String value2) { + addCriterion("classification_type not between", value1, value2, "classificationType"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountIsNull() { + addCriterion("nature_of_account is null"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountIsNotNull() { + addCriterion("nature_of_account is not null"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountEqualTo(String value) { + addCriterion("nature_of_account =", value, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountNotEqualTo(String value) { + addCriterion("nature_of_account <>", value, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountGreaterThan(String value) { + addCriterion("nature_of_account >", value, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountGreaterThanOrEqualTo(String value) { + addCriterion("nature_of_account >=", value, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountLessThan(String value) { + addCriterion("nature_of_account <", value, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountLessThanOrEqualTo(String value) { + addCriterion("nature_of_account <=", value, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountLike(String value) { + addCriterion("nature_of_account like", value, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountNotLike(String value) { + addCriterion("nature_of_account not like", value, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountIn(List values) { + addCriterion("nature_of_account in", values, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountNotIn(List values) { + addCriterion("nature_of_account not in", values, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountBetween(String value1, String value2) { + addCriterion("nature_of_account between", value1, value2, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andNatureOfAccountNotBetween(String value1, String value2) { + addCriterion("nature_of_account not between", value1, value2, "natureOfAccount"); + return (Criteria) this; + } + + public Criteria andVoucherTypeIsNull() { + addCriterion("voucher_type is null"); + return (Criteria) this; + } + + public Criteria andVoucherTypeIsNotNull() { + addCriterion("voucher_type is not null"); + return (Criteria) this; + } + + public Criteria andVoucherTypeEqualTo(String value) { + addCriterion("voucher_type =", value, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeNotEqualTo(String value) { + addCriterion("voucher_type <>", value, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeGreaterThan(String value) { + addCriterion("voucher_type >", value, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeGreaterThanOrEqualTo(String value) { + addCriterion("voucher_type >=", value, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeLessThan(String value) { + addCriterion("voucher_type <", value, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeLessThanOrEqualTo(String value) { + addCriterion("voucher_type <=", value, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeLike(String value) { + addCriterion("voucher_type like", value, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeNotLike(String value) { + addCriterion("voucher_type not like", value, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeIn(List values) { + addCriterion("voucher_type in", values, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeNotIn(List values) { + addCriterion("voucher_type not in", values, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeBetween(String value1, String value2) { + addCriterion("voucher_type between", value1, value2, "voucherType"); + return (Criteria) this; + } + + public Criteria andVoucherTypeNotBetween(String value1, String value2) { + addCriterion("voucher_type not between", value1, value2, "voucherType"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodIsNull() { + addCriterion("withdrawal_method is null"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodIsNotNull() { + addCriterion("withdrawal_method is not null"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodEqualTo(String value) { + addCriterion("withdrawal_method =", value, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodNotEqualTo(String value) { + addCriterion("withdrawal_method <>", value, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodGreaterThan(String value) { + addCriterion("withdrawal_method >", value, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodGreaterThanOrEqualTo(String value) { + addCriterion("withdrawal_method >=", value, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodLessThan(String value) { + addCriterion("withdrawal_method <", value, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodLessThanOrEqualTo(String value) { + addCriterion("withdrawal_method <=", value, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodLike(String value) { + addCriterion("withdrawal_method like", value, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodNotLike(String value) { + addCriterion("withdrawal_method not like", value, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodIn(List values) { + addCriterion("withdrawal_method in", values, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodNotIn(List values) { + addCriterion("withdrawal_method not in", values, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodBetween(String value1, String value2) { + addCriterion("withdrawal_method between", value1, value2, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalMethodNotBetween(String value1, String value2) { + addCriterion("withdrawal_method not between", value1, value2, "withdrawalMethod"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordIsNull() { + addCriterion("withdrawal_password is null"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordIsNotNull() { + addCriterion("withdrawal_password is not null"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordEqualTo(String value) { + addCriterion("withdrawal_password =", value, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordNotEqualTo(String value) { + addCriterion("withdrawal_password <>", value, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordGreaterThan(String value) { + addCriterion("withdrawal_password >", value, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordGreaterThanOrEqualTo(String value) { + addCriterion("withdrawal_password >=", value, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordLessThan(String value) { + addCriterion("withdrawal_password <", value, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordLessThanOrEqualTo(String value) { + addCriterion("withdrawal_password <=", value, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordLike(String value) { + addCriterion("withdrawal_password like", value, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordNotLike(String value) { + addCriterion("withdrawal_password not like", value, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordIn(List values) { + addCriterion("withdrawal_password in", values, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordNotIn(List values) { + addCriterion("withdrawal_password not in", values, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordBetween(String value1, String value2) { + addCriterion("withdrawal_password between", value1, value2, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andWithdrawalPasswordNotBetween(String value1, String value2) { + addCriterion("withdrawal_password not between", value1, value2, "withdrawalPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordIsNull() { + addCriterion("confirm_password is null"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordIsNotNull() { + addCriterion("confirm_password is not null"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordEqualTo(String value) { + addCriterion("confirm_password =", value, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordNotEqualTo(String value) { + addCriterion("confirm_password <>", value, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordGreaterThan(String value) { + addCriterion("confirm_password >", value, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordGreaterThanOrEqualTo(String value) { + addCriterion("confirm_password >=", value, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordLessThan(String value) { + addCriterion("confirm_password <", value, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordLessThanOrEqualTo(String value) { + addCriterion("confirm_password <=", value, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordLike(String value) { + addCriterion("confirm_password like", value, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordNotLike(String value) { + addCriterion("confirm_password not like", value, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordIn(List values) { + addCriterion("confirm_password in", values, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordNotIn(List values) { + addCriterion("confirm_password not in", values, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordBetween(String value1, String value2) { + addCriterion("confirm_password between", value1, value2, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andConfirmPasswordNotBetween(String value1, String value2) { + addCriterion("confirm_password not between", value1, value2, "confirmPassword"); + return (Criteria) this; + } + + public Criteria andBankCardNumberIsNull() { + addCriterion("bank_card_number is null"); + return (Criteria) this; + } + + public Criteria andBankCardNumberIsNotNull() { + addCriterion("bank_card_number is not null"); + return (Criteria) this; + } + + public Criteria andBankCardNumberEqualTo(Integer value) { + addCriterion("bank_card_number =", value, "bankCardNumber"); + return (Criteria) this; + } + + public Criteria andBankCardNumberNotEqualTo(Integer value) { + addCriterion("bank_card_number <>", value, "bankCardNumber"); + return (Criteria) this; + } + + public Criteria andBankCardNumberGreaterThan(Integer value) { + addCriterion("bank_card_number >", value, "bankCardNumber"); + return (Criteria) this; + } + + public Criteria andBankCardNumberGreaterThanOrEqualTo(Integer value) { + addCriterion("bank_card_number >=", value, "bankCardNumber"); + return (Criteria) this; + } + + public Criteria andBankCardNumberLessThan(Integer value) { + addCriterion("bank_card_number <", value, "bankCardNumber"); + return (Criteria) this; + } + + public Criteria andBankCardNumberLessThanOrEqualTo(Integer value) { + addCriterion("bank_card_number <=", value, "bankCardNumber"); + return (Criteria) this; + } + + public Criteria andBankCardNumberIn(List values) { + addCriterion("bank_card_number in", values, "bankCardNumber"); + return (Criteria) this; + } + + public Criteria andBankCardNumberNotIn(List values) { + addCriterion("bank_card_number not in", values, "bankCardNumber"); + return (Criteria) this; + } + + public Criteria andBankCardNumberBetween(Integer value1, Integer value2) { + addCriterion("bank_card_number between", value1, value2, "bankCardNumber"); + return (Criteria) this; + } + + public Criteria andBankCardNumberNotBetween(Integer value1, Integer value2) { + addCriterion("bank_card_number not between", value1, value2, "bankCardNumber"); + 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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 values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List 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 andSaveStatusIsNull() { + addCriterion("save_status is null"); + return (Criteria) this; + } + + public Criteria andSaveStatusIsNotNull() { + addCriterion("save_status is not null"); + return (Criteria) this; + } + + public Criteria andSaveStatusEqualTo(Integer value) { + addCriterion("save_status =", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusNotEqualTo(Integer value) { + addCriterion("save_status <>", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusGreaterThan(Integer value) { + addCriterion("save_status >", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("save_status >=", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusLessThan(Integer value) { + addCriterion("save_status <", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusLessThanOrEqualTo(Integer value) { + addCriterion("save_status <=", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusIn(List values) { + addCriterion("save_status in", values, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusNotIn(List values) { + addCriterion("save_status not in", values, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusBetween(Integer value1, Integer value2) { + addCriterion("save_status between", value1, value2, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusNotBetween(Integer value1, Integer value2) { + addCriterion("save_status not between", value1, value2, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusIsNull() { + addCriterion("submit_status is null"); + return (Criteria) this; + } + + public Criteria andSubmitStatusIsNotNull() { + addCriterion("submit_status is not null"); + return (Criteria) this; + } + + public Criteria andSubmitStatusEqualTo(Integer value) { + addCriterion("submit_status =", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusNotEqualTo(Integer value) { + addCriterion("submit_status <>", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusGreaterThan(Integer value) { + addCriterion("submit_status >", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("submit_status >=", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusLessThan(Integer value) { + addCriterion("submit_status <", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusLessThanOrEqualTo(Integer value) { + addCriterion("submit_status <=", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusIn(List values) { + addCriterion("submit_status in", values, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusNotIn(List values) { + addCriterion("submit_status not in", values, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusBetween(Integer value1, Integer value2) { + addCriterion("submit_status between", value1, value2, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusNotBetween(Integer value1, Integer value2) { + addCriterion("submit_status not between", value1, value2, "submitStatus"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(String value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(String value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(String value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(String value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(String value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(String value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLike(String value) { + addCriterion("user_id like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotLike(String value) { + addCriterion("user_id not like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(String value1, String value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(String value1, String value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andErrorNumberIsNull() { + addCriterion("error_number is null"); + return (Criteria) this; + } + + public Criteria andErrorNumberIsNotNull() { + addCriterion("error_number is not null"); + return (Criteria) this; + } + + public Criteria andErrorNumberEqualTo(Integer value) { + addCriterion("error_number =", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberNotEqualTo(Integer value) { + addCriterion("error_number <>", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberGreaterThan(Integer value) { + addCriterion("error_number >", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberGreaterThanOrEqualTo(Integer value) { + addCriterion("error_number >=", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberLessThan(Integer value) { + addCriterion("error_number <", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberLessThanOrEqualTo(Integer value) { + addCriterion("error_number <=", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberIn(List values) { + addCriterion("error_number in", values, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberNotIn(List values) { + addCriterion("error_number not in", values, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberBetween(Integer value1, Integer value2) { + addCriterion("error_number between", value1, value2, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberNotBetween(Integer value1, Integer value2) { + addCriterion("error_number not between", value1, value2, "errorNumber"); + return (Criteria) this; + } + + public Criteria andNumberIsNull() { + addCriterion("number is null"); + return (Criteria) this; + } + + public Criteria andNumberIsNotNull() { + addCriterion("number is not null"); + return (Criteria) this; + } + + public Criteria andNumberEqualTo(Integer value) { + addCriterion("number =", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberNotEqualTo(Integer value) { + addCriterion("number <>", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberGreaterThan(Integer value) { + addCriterion("number >", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberGreaterThanOrEqualTo(Integer value) { + addCriterion("number >=", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberLessThan(Integer value) { + addCriterion("number <", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberLessThanOrEqualTo(Integer value) { + addCriterion("number <=", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberIn(List values) { + addCriterion("number in", values, "number"); + return (Criteria) this; + } + + public Criteria andNumberNotIn(List values) { + addCriterion("number not in", values, "number"); + return (Criteria) this; + } + + public Criteria andNumberBetween(Integer value1, Integer value2) { + addCriterion("number between", value1, value2, "number"); + return (Criteria) this; + } + + public Criteria andNumberNotBetween(Integer value1, Integer value2) { + addCriterion("number not between", value1, value2, "number"); + 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 diff --git a/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCustomerInfo.java b/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCustomerInfo.java new file mode 100644 index 0000000..bed202f --- /dev/null +++ b/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCustomerInfo.java @@ -0,0 +1,305 @@ +package com.sztzjy.bank.entity; + +import java.util.Date; + +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModelProperty; +import org.springframework.format.annotation.DateTimeFormat; + +/** + * 个人消费贷款业务-客户信息 + * + * @author whb + * per_consumer_loan_customer_info + */ +public class PerConsumerLoanCustomerInfo { + @ApiModelProperty(notes = "ID") + private String id; + + @ApiModelProperty(notes = "客户姓名") + private String customerName; + + @ApiModelProperty(notes = "客户号") + private Integer customerNo; + + @ApiModelProperty(notes = "民族") + private String nationality; + + @ApiModelProperty(notes = "证件类型") + private String idType; + + @ApiModelProperty(notes = "证件号码") + private String idNumber; + + @ApiModelProperty(notes = "婚姻状况") + private String maritalStatus; + + @ApiModelProperty(notes = "职业") + private String career; + + @ApiModelProperty(notes = "联系电话") + private String contactNumber; + + @ApiModelProperty(notes = "职位") + private String position; + + @ApiModelProperty(notes = "在职年限") + private String yearsOfEmployment; + + @ApiModelProperty(notes = "月薪") + private String monthlyPay; + + @ApiModelProperty(notes = "年收入") + private String annualIncome; + + @ApiModelProperty(notes = "就职公司") + private String employmentCompany; + + @ApiModelProperty(notes = "通讯地址") + private String mailAddress; + + @ApiModelProperty(notes = "户籍地址") + private String residenceAddress; + + @ApiModelProperty(notes = "第一联系人") + private String firstContactPerson; + + @ApiModelProperty(notes = "关系") + private String relationship; + + @ApiModelProperty(notes = "联系人电话") + private String contactPhone; + + @ApiModelProperty(notes = "创建时间") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + private Date createTime; + + @ApiModelProperty(notes = "更新时间") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") + private Date updateTime; + + @ApiModelProperty(notes = "保存状态(0未保存、1已保存)") + private Integer saveStatus; + + @ApiModelProperty(notes = "提交状态(0未提交、1已提交)") + private Integer submitStatus; + + @ApiModelProperty(notes = "用户ID") + private String userId; + + @ApiModelProperty(notes = "错误次数") + private Integer errorNumber; + + @ApiModelProperty(notes = "第几套案例(1、2、3)") + private Integer number; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + public String getCustomerName() { + return customerName; + } + + public void setCustomerName(String customerName) { + this.customerName = customerName == null ? null : customerName.trim(); + } + + public Integer getCustomerNo() { + return customerNo; + } + + public void setCustomerNo(Integer customerNo) { + this.customerNo = customerNo; + } + + public String getNationality() { + return nationality; + } + + public void setNationality(String nationality) { + this.nationality = nationality == null ? null : nationality.trim(); + } + + public String getIdType() { + return idType; + } + + public void setIdType(String idType) { + this.idType = idType == null ? null : idType.trim(); + } + + public String getIdNumber() { + return idNumber; + } + + public void setIdNumber(String idNumber) { + this.idNumber = idNumber == null ? null : idNumber.trim(); + } + + public String getMaritalStatus() { + return maritalStatus; + } + + public void setMaritalStatus(String maritalStatus) { + this.maritalStatus = maritalStatus == null ? null : maritalStatus.trim(); + } + + public String getCareer() { + return career; + } + + public void setCareer(String career) { + this.career = career == null ? null : career.trim(); + } + + public String getContactNumber() { + return contactNumber; + } + + public void setContactNumber(String contactNumber) { + this.contactNumber = contactNumber == null ? null : contactNumber.trim(); + } + + public String getPosition() { + return position; + } + + public void setPosition(String position) { + this.position = position == null ? null : position.trim(); + } + + public String getYearsOfEmployment() { + return yearsOfEmployment; + } + + public void setYearsOfEmployment(String yearsOfEmployment) { + this.yearsOfEmployment = yearsOfEmployment == null ? null : yearsOfEmployment.trim(); + } + + public String getMonthlyPay() { + return monthlyPay; + } + + public void setMonthlyPay(String monthlyPay) { + this.monthlyPay = monthlyPay == null ? null : monthlyPay.trim(); + } + + public String getAnnualIncome() { + return annualIncome; + } + + public void setAnnualIncome(String annualIncome) { + this.annualIncome = annualIncome == null ? null : annualIncome.trim(); + } + + public String getEmploymentCompany() { + return employmentCompany; + } + + public void setEmploymentCompany(String employmentCompany) { + this.employmentCompany = employmentCompany == null ? null : employmentCompany.trim(); + } + + public String getMailAddress() { + return mailAddress; + } + + public void setMailAddress(String mailAddress) { + this.mailAddress = mailAddress == null ? null : mailAddress.trim(); + } + + public String getResidenceAddress() { + return residenceAddress; + } + + public void setResidenceAddress(String residenceAddress) { + this.residenceAddress = residenceAddress == null ? null : residenceAddress.trim(); + } + + public String getFirstContactPerson() { + return firstContactPerson; + } + + public void setFirstContactPerson(String firstContactPerson) { + this.firstContactPerson = firstContactPerson == null ? null : firstContactPerson.trim(); + } + + public String getRelationship() { + return relationship; + } + + public void setRelationship(String relationship) { + this.relationship = relationship == null ? null : relationship.trim(); + } + + public String getContactPhone() { + return contactPhone; + } + + public void setContactPhone(String contactPhone) { + this.contactPhone = contactPhone == null ? null : contactPhone.trim(); + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public Integer getSaveStatus() { + return saveStatus; + } + + public void setSaveStatus(Integer saveStatus) { + this.saveStatus = saveStatus; + } + + public Integer getSubmitStatus() { + return submitStatus; + } + + public void setSubmitStatus(Integer submitStatus) { + this.submitStatus = submitStatus; + } + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId == null ? null : userId.trim(); + } + + public Integer getErrorNumber() { + return errorNumber; + } + + public void setErrorNumber(Integer errorNumber) { + this.errorNumber = errorNumber; + } + + public Integer getNumber() { + return number; + } + + public void setNumber(Integer number) { + this.number = number; + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCustomerInfoExample.java b/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCustomerInfoExample.java new file mode 100644 index 0000000..51e2d1a --- /dev/null +++ b/src/main/java/com/sztzjy/bank/entity/PerConsumerLoanCustomerInfoExample.java @@ -0,0 +1,1950 @@ +package com.sztzjy.bank.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class PerConsumerLoanCustomerInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PerConsumerLoanCustomerInfoExample() { + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andCustomerNameIsNull() { + addCriterion("customer_name is null"); + return (Criteria) this; + } + + public Criteria andCustomerNameIsNotNull() { + addCriterion("customer_name is not null"); + return (Criteria) this; + } + + public Criteria andCustomerNameEqualTo(String value) { + addCriterion("customer_name =", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameNotEqualTo(String value) { + addCriterion("customer_name <>", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameGreaterThan(String value) { + addCriterion("customer_name >", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameGreaterThanOrEqualTo(String value) { + addCriterion("customer_name >=", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameLessThan(String value) { + addCriterion("customer_name <", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameLessThanOrEqualTo(String value) { + addCriterion("customer_name <=", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameLike(String value) { + addCriterion("customer_name like", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameNotLike(String value) { + addCriterion("customer_name not like", value, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameIn(List values) { + addCriterion("customer_name in", values, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameNotIn(List values) { + addCriterion("customer_name not in", values, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameBetween(String value1, String value2) { + addCriterion("customer_name between", value1, value2, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNameNotBetween(String value1, String value2) { + addCriterion("customer_name not between", value1, value2, "customerName"); + return (Criteria) this; + } + + public Criteria andCustomerNoIsNull() { + addCriterion("customer_no is null"); + return (Criteria) this; + } + + public Criteria andCustomerNoIsNotNull() { + addCriterion("customer_no is not null"); + return (Criteria) this; + } + + public Criteria andCustomerNoEqualTo(Integer value) { + addCriterion("customer_no =", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoNotEqualTo(Integer value) { + addCriterion("customer_no <>", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoGreaterThan(Integer value) { + addCriterion("customer_no >", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoGreaterThanOrEqualTo(Integer value) { + addCriterion("customer_no >=", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoLessThan(Integer value) { + addCriterion("customer_no <", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoLessThanOrEqualTo(Integer value) { + addCriterion("customer_no <=", value, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoIn(List values) { + addCriterion("customer_no in", values, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoNotIn(List values) { + addCriterion("customer_no not in", values, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoBetween(Integer value1, Integer value2) { + addCriterion("customer_no between", value1, value2, "customerNo"); + return (Criteria) this; + } + + public Criteria andCustomerNoNotBetween(Integer value1, Integer value2) { + addCriterion("customer_no not between", value1, value2, "customerNo"); + return (Criteria) this; + } + + public Criteria andNationalityIsNull() { + addCriterion("nationality is null"); + return (Criteria) this; + } + + public Criteria andNationalityIsNotNull() { + addCriterion("nationality is not null"); + return (Criteria) this; + } + + public Criteria andNationalityEqualTo(String value) { + addCriterion("nationality =", value, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityNotEqualTo(String value) { + addCriterion("nationality <>", value, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityGreaterThan(String value) { + addCriterion("nationality >", value, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityGreaterThanOrEqualTo(String value) { + addCriterion("nationality >=", value, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityLessThan(String value) { + addCriterion("nationality <", value, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityLessThanOrEqualTo(String value) { + addCriterion("nationality <=", value, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityLike(String value) { + addCriterion("nationality like", value, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityNotLike(String value) { + addCriterion("nationality not like", value, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityIn(List values) { + addCriterion("nationality in", values, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityNotIn(List values) { + addCriterion("nationality not in", values, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityBetween(String value1, String value2) { + addCriterion("nationality between", value1, value2, "nationality"); + return (Criteria) this; + } + + public Criteria andNationalityNotBetween(String value1, String value2) { + addCriterion("nationality not between", value1, value2, "nationality"); + return (Criteria) this; + } + + public Criteria andIdTypeIsNull() { + addCriterion("id_type is null"); + return (Criteria) this; + } + + public Criteria andIdTypeIsNotNull() { + addCriterion("id_type is not null"); + return (Criteria) this; + } + + public Criteria andIdTypeEqualTo(String value) { + addCriterion("id_type =", value, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeNotEqualTo(String value) { + addCriterion("id_type <>", value, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeGreaterThan(String value) { + addCriterion("id_type >", value, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeGreaterThanOrEqualTo(String value) { + addCriterion("id_type >=", value, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeLessThan(String value) { + addCriterion("id_type <", value, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeLessThanOrEqualTo(String value) { + addCriterion("id_type <=", value, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeLike(String value) { + addCriterion("id_type like", value, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeNotLike(String value) { + addCriterion("id_type not like", value, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeIn(List values) { + addCriterion("id_type in", values, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeNotIn(List values) { + addCriterion("id_type not in", values, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeBetween(String value1, String value2) { + addCriterion("id_type between", value1, value2, "idType"); + return (Criteria) this; + } + + public Criteria andIdTypeNotBetween(String value1, String value2) { + addCriterion("id_type not between", value1, value2, "idType"); + return (Criteria) this; + } + + public Criteria andIdNumberIsNull() { + addCriterion("id_number is null"); + return (Criteria) this; + } + + public Criteria andIdNumberIsNotNull() { + addCriterion("id_number is not null"); + return (Criteria) this; + } + + public Criteria andIdNumberEqualTo(String value) { + addCriterion("id_number =", value, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberNotEqualTo(String value) { + addCriterion("id_number <>", value, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberGreaterThan(String value) { + addCriterion("id_number >", value, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberGreaterThanOrEqualTo(String value) { + addCriterion("id_number >=", value, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberLessThan(String value) { + addCriterion("id_number <", value, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberLessThanOrEqualTo(String value) { + addCriterion("id_number <=", value, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberLike(String value) { + addCriterion("id_number like", value, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberNotLike(String value) { + addCriterion("id_number not like", value, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberIn(List values) { + addCriterion("id_number in", values, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberNotIn(List values) { + addCriterion("id_number not in", values, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberBetween(String value1, String value2) { + addCriterion("id_number between", value1, value2, "idNumber"); + return (Criteria) this; + } + + public Criteria andIdNumberNotBetween(String value1, String value2) { + addCriterion("id_number not between", value1, value2, "idNumber"); + return (Criteria) this; + } + + public Criteria andMaritalStatusIsNull() { + addCriterion("marital_status is null"); + return (Criteria) this; + } + + public Criteria andMaritalStatusIsNotNull() { + addCriterion("marital_status is not null"); + return (Criteria) this; + } + + public Criteria andMaritalStatusEqualTo(String value) { + addCriterion("marital_status =", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusNotEqualTo(String value) { + addCriterion("marital_status <>", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusGreaterThan(String value) { + addCriterion("marital_status >", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusGreaterThanOrEqualTo(String value) { + addCriterion("marital_status >=", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusLessThan(String value) { + addCriterion("marital_status <", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusLessThanOrEqualTo(String value) { + addCriterion("marital_status <=", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusLike(String value) { + addCriterion("marital_status like", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusNotLike(String value) { + addCriterion("marital_status not like", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusIn(List values) { + addCriterion("marital_status in", values, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusNotIn(List values) { + addCriterion("marital_status not in", values, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusBetween(String value1, String value2) { + addCriterion("marital_status between", value1, value2, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusNotBetween(String value1, String value2) { + addCriterion("marital_status not between", value1, value2, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andCareerIsNull() { + addCriterion("career is null"); + return (Criteria) this; + } + + public Criteria andCareerIsNotNull() { + addCriterion("career is not null"); + return (Criteria) this; + } + + public Criteria andCareerEqualTo(String value) { + addCriterion("career =", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerNotEqualTo(String value) { + addCriterion("career <>", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerGreaterThan(String value) { + addCriterion("career >", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerGreaterThanOrEqualTo(String value) { + addCriterion("career >=", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerLessThan(String value) { + addCriterion("career <", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerLessThanOrEqualTo(String value) { + addCriterion("career <=", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerLike(String value) { + addCriterion("career like", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerNotLike(String value) { + addCriterion("career not like", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerIn(List values) { + addCriterion("career in", values, "career"); + return (Criteria) this; + } + + public Criteria andCareerNotIn(List values) { + addCriterion("career not in", values, "career"); + return (Criteria) this; + } + + public Criteria andCareerBetween(String value1, String value2) { + addCriterion("career between", value1, value2, "career"); + return (Criteria) this; + } + + public Criteria andCareerNotBetween(String value1, String value2) { + addCriterion("career not between", value1, value2, "career"); + return (Criteria) this; + } + + public Criteria andContactNumberIsNull() { + addCriterion("contact_number is null"); + return (Criteria) this; + } + + public Criteria andContactNumberIsNotNull() { + addCriterion("contact_number is not null"); + return (Criteria) this; + } + + public Criteria andContactNumberEqualTo(String value) { + addCriterion("contact_number =", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberNotEqualTo(String value) { + addCriterion("contact_number <>", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberGreaterThan(String value) { + addCriterion("contact_number >", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberGreaterThanOrEqualTo(String value) { + addCriterion("contact_number >=", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberLessThan(String value) { + addCriterion("contact_number <", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberLessThanOrEqualTo(String value) { + addCriterion("contact_number <=", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberLike(String value) { + addCriterion("contact_number like", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberNotLike(String value) { + addCriterion("contact_number not like", value, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberIn(List values) { + addCriterion("contact_number in", values, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberNotIn(List values) { + addCriterion("contact_number not in", values, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberBetween(String value1, String value2) { + addCriterion("contact_number between", value1, value2, "contactNumber"); + return (Criteria) this; + } + + public Criteria andContactNumberNotBetween(String value1, String value2) { + addCriterion("contact_number not between", value1, value2, "contactNumber"); + 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 values) { + addCriterion("position in", values, "position"); + return (Criteria) this; + } + + public Criteria andPositionNotIn(List 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 andYearsOfEmploymentIsNull() { + addCriterion("years_of_employment is null"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentIsNotNull() { + addCriterion("years_of_employment is not null"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentEqualTo(String value) { + addCriterion("years_of_employment =", value, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentNotEqualTo(String value) { + addCriterion("years_of_employment <>", value, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentGreaterThan(String value) { + addCriterion("years_of_employment >", value, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentGreaterThanOrEqualTo(String value) { + addCriterion("years_of_employment >=", value, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentLessThan(String value) { + addCriterion("years_of_employment <", value, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentLessThanOrEqualTo(String value) { + addCriterion("years_of_employment <=", value, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentLike(String value) { + addCriterion("years_of_employment like", value, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentNotLike(String value) { + addCriterion("years_of_employment not like", value, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentIn(List values) { + addCriterion("years_of_employment in", values, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentNotIn(List values) { + addCriterion("years_of_employment not in", values, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentBetween(String value1, String value2) { + addCriterion("years_of_employment between", value1, value2, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andYearsOfEmploymentNotBetween(String value1, String value2) { + addCriterion("years_of_employment not between", value1, value2, "yearsOfEmployment"); + return (Criteria) this; + } + + public Criteria andMonthlyPayIsNull() { + addCriterion("monthly_pay is null"); + return (Criteria) this; + } + + public Criteria andMonthlyPayIsNotNull() { + addCriterion("monthly_pay is not null"); + return (Criteria) this; + } + + public Criteria andMonthlyPayEqualTo(String value) { + addCriterion("monthly_pay =", value, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayNotEqualTo(String value) { + addCriterion("monthly_pay <>", value, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayGreaterThan(String value) { + addCriterion("monthly_pay >", value, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayGreaterThanOrEqualTo(String value) { + addCriterion("monthly_pay >=", value, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayLessThan(String value) { + addCriterion("monthly_pay <", value, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayLessThanOrEqualTo(String value) { + addCriterion("monthly_pay <=", value, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayLike(String value) { + addCriterion("monthly_pay like", value, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayNotLike(String value) { + addCriterion("monthly_pay not like", value, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayIn(List values) { + addCriterion("monthly_pay in", values, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayNotIn(List values) { + addCriterion("monthly_pay not in", values, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayBetween(String value1, String value2) { + addCriterion("monthly_pay between", value1, value2, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andMonthlyPayNotBetween(String value1, String value2) { + addCriterion("monthly_pay not between", value1, value2, "monthlyPay"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeIsNull() { + addCriterion("annual_income is null"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeIsNotNull() { + addCriterion("annual_income is not null"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeEqualTo(String value) { + addCriterion("annual_income =", value, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeNotEqualTo(String value) { + addCriterion("annual_income <>", value, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeGreaterThan(String value) { + addCriterion("annual_income >", value, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeGreaterThanOrEqualTo(String value) { + addCriterion("annual_income >=", value, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeLessThan(String value) { + addCriterion("annual_income <", value, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeLessThanOrEqualTo(String value) { + addCriterion("annual_income <=", value, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeLike(String value) { + addCriterion("annual_income like", value, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeNotLike(String value) { + addCriterion("annual_income not like", value, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeIn(List values) { + addCriterion("annual_income in", values, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeNotIn(List values) { + addCriterion("annual_income not in", values, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeBetween(String value1, String value2) { + addCriterion("annual_income between", value1, value2, "annualIncome"); + return (Criteria) this; + } + + public Criteria andAnnualIncomeNotBetween(String value1, String value2) { + addCriterion("annual_income not between", value1, value2, "annualIncome"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyIsNull() { + addCriterion("employment_company is null"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyIsNotNull() { + addCriterion("employment_company is not null"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyEqualTo(String value) { + addCriterion("employment_company =", value, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyNotEqualTo(String value) { + addCriterion("employment_company <>", value, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyGreaterThan(String value) { + addCriterion("employment_company >", value, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyGreaterThanOrEqualTo(String value) { + addCriterion("employment_company >=", value, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyLessThan(String value) { + addCriterion("employment_company <", value, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyLessThanOrEqualTo(String value) { + addCriterion("employment_company <=", value, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyLike(String value) { + addCriterion("employment_company like", value, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyNotLike(String value) { + addCriterion("employment_company not like", value, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyIn(List values) { + addCriterion("employment_company in", values, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyNotIn(List values) { + addCriterion("employment_company not in", values, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyBetween(String value1, String value2) { + addCriterion("employment_company between", value1, value2, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andEmploymentCompanyNotBetween(String value1, String value2) { + addCriterion("employment_company not between", value1, value2, "employmentCompany"); + return (Criteria) this; + } + + public Criteria andMailAddressIsNull() { + addCriterion("mail_address is null"); + return (Criteria) this; + } + + public Criteria andMailAddressIsNotNull() { + addCriterion("mail_address is not null"); + return (Criteria) this; + } + + public Criteria andMailAddressEqualTo(String value) { + addCriterion("mail_address =", value, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressNotEqualTo(String value) { + addCriterion("mail_address <>", value, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressGreaterThan(String value) { + addCriterion("mail_address >", value, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressGreaterThanOrEqualTo(String value) { + addCriterion("mail_address >=", value, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressLessThan(String value) { + addCriterion("mail_address <", value, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressLessThanOrEqualTo(String value) { + addCriterion("mail_address <=", value, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressLike(String value) { + addCriterion("mail_address like", value, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressNotLike(String value) { + addCriterion("mail_address not like", value, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressIn(List values) { + addCriterion("mail_address in", values, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressNotIn(List values) { + addCriterion("mail_address not in", values, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressBetween(String value1, String value2) { + addCriterion("mail_address between", value1, value2, "mailAddress"); + return (Criteria) this; + } + + public Criteria andMailAddressNotBetween(String value1, String value2) { + addCriterion("mail_address not between", value1, value2, "mailAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressIsNull() { + addCriterion("residence_address is null"); + return (Criteria) this; + } + + public Criteria andResidenceAddressIsNotNull() { + addCriterion("residence_address is not null"); + return (Criteria) this; + } + + public Criteria andResidenceAddressEqualTo(String value) { + addCriterion("residence_address =", value, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressNotEqualTo(String value) { + addCriterion("residence_address <>", value, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressGreaterThan(String value) { + addCriterion("residence_address >", value, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressGreaterThanOrEqualTo(String value) { + addCriterion("residence_address >=", value, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressLessThan(String value) { + addCriterion("residence_address <", value, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressLessThanOrEqualTo(String value) { + addCriterion("residence_address <=", value, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressLike(String value) { + addCriterion("residence_address like", value, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressNotLike(String value) { + addCriterion("residence_address not like", value, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressIn(List values) { + addCriterion("residence_address in", values, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressNotIn(List values) { + addCriterion("residence_address not in", values, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressBetween(String value1, String value2) { + addCriterion("residence_address between", value1, value2, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andResidenceAddressNotBetween(String value1, String value2) { + addCriterion("residence_address not between", value1, value2, "residenceAddress"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonIsNull() { + addCriterion("first_contact_person is null"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonIsNotNull() { + addCriterion("first_contact_person is not null"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonEqualTo(String value) { + addCriterion("first_contact_person =", value, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonNotEqualTo(String value) { + addCriterion("first_contact_person <>", value, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonGreaterThan(String value) { + addCriterion("first_contact_person >", value, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonGreaterThanOrEqualTo(String value) { + addCriterion("first_contact_person >=", value, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonLessThan(String value) { + addCriterion("first_contact_person <", value, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonLessThanOrEqualTo(String value) { + addCriterion("first_contact_person <=", value, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonLike(String value) { + addCriterion("first_contact_person like", value, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonNotLike(String value) { + addCriterion("first_contact_person not like", value, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonIn(List values) { + addCriterion("first_contact_person in", values, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonNotIn(List values) { + addCriterion("first_contact_person not in", values, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonBetween(String value1, String value2) { + addCriterion("first_contact_person between", value1, value2, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andFirstContactPersonNotBetween(String value1, String value2) { + addCriterion("first_contact_person not between", value1, value2, "firstContactPerson"); + return (Criteria) this; + } + + public Criteria andRelationshipIsNull() { + addCriterion("relationship is null"); + return (Criteria) this; + } + + public Criteria andRelationshipIsNotNull() { + addCriterion("relationship is not null"); + return (Criteria) this; + } + + public Criteria andRelationshipEqualTo(String value) { + addCriterion("relationship =", value, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipNotEqualTo(String value) { + addCriterion("relationship <>", value, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipGreaterThan(String value) { + addCriterion("relationship >", value, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipGreaterThanOrEqualTo(String value) { + addCriterion("relationship >=", value, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipLessThan(String value) { + addCriterion("relationship <", value, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipLessThanOrEqualTo(String value) { + addCriterion("relationship <=", value, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipLike(String value) { + addCriterion("relationship like", value, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipNotLike(String value) { + addCriterion("relationship not like", value, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipIn(List values) { + addCriterion("relationship in", values, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipNotIn(List values) { + addCriterion("relationship not in", values, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipBetween(String value1, String value2) { + addCriterion("relationship between", value1, value2, "relationship"); + return (Criteria) this; + } + + public Criteria andRelationshipNotBetween(String value1, String value2) { + addCriterion("relationship not between", value1, value2, "relationship"); + return (Criteria) this; + } + + public Criteria andContactPhoneIsNull() { + addCriterion("contact_phone is null"); + return (Criteria) this; + } + + public Criteria andContactPhoneIsNotNull() { + addCriterion("contact_phone is not null"); + return (Criteria) this; + } + + public Criteria andContactPhoneEqualTo(String value) { + addCriterion("contact_phone =", value, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneNotEqualTo(String value) { + addCriterion("contact_phone <>", value, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneGreaterThan(String value) { + addCriterion("contact_phone >", value, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneGreaterThanOrEqualTo(String value) { + addCriterion("contact_phone >=", value, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneLessThan(String value) { + addCriterion("contact_phone <", value, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneLessThanOrEqualTo(String value) { + addCriterion("contact_phone <=", value, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneLike(String value) { + addCriterion("contact_phone like", value, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneNotLike(String value) { + addCriterion("contact_phone not like", value, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneIn(List values) { + addCriterion("contact_phone in", values, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneNotIn(List values) { + addCriterion("contact_phone not in", values, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneBetween(String value1, String value2) { + addCriterion("contact_phone between", value1, value2, "contactPhone"); + return (Criteria) this; + } + + public Criteria andContactPhoneNotBetween(String value1, String value2) { + addCriterion("contact_phone not between", value1, value2, "contactPhone"); + 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 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 values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List 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 andSaveStatusIsNull() { + addCriterion("save_status is null"); + return (Criteria) this; + } + + public Criteria andSaveStatusIsNotNull() { + addCriterion("save_status is not null"); + return (Criteria) this; + } + + public Criteria andSaveStatusEqualTo(Integer value) { + addCriterion("save_status =", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusNotEqualTo(Integer value) { + addCriterion("save_status <>", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusGreaterThan(Integer value) { + addCriterion("save_status >", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("save_status >=", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusLessThan(Integer value) { + addCriterion("save_status <", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusLessThanOrEqualTo(Integer value) { + addCriterion("save_status <=", value, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusIn(List values) { + addCriterion("save_status in", values, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusNotIn(List values) { + addCriterion("save_status not in", values, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusBetween(Integer value1, Integer value2) { + addCriterion("save_status between", value1, value2, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSaveStatusNotBetween(Integer value1, Integer value2) { + addCriterion("save_status not between", value1, value2, "saveStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusIsNull() { + addCriterion("submit_status is null"); + return (Criteria) this; + } + + public Criteria andSubmitStatusIsNotNull() { + addCriterion("submit_status is not null"); + return (Criteria) this; + } + + public Criteria andSubmitStatusEqualTo(Integer value) { + addCriterion("submit_status =", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusNotEqualTo(Integer value) { + addCriterion("submit_status <>", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusGreaterThan(Integer value) { + addCriterion("submit_status >", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("submit_status >=", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusLessThan(Integer value) { + addCriterion("submit_status <", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusLessThanOrEqualTo(Integer value) { + addCriterion("submit_status <=", value, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusIn(List values) { + addCriterion("submit_status in", values, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusNotIn(List values) { + addCriterion("submit_status not in", values, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusBetween(Integer value1, Integer value2) { + addCriterion("submit_status between", value1, value2, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusNotBetween(Integer value1, Integer value2) { + addCriterion("submit_status not between", value1, value2, "submitStatus"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(String value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(String value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(String value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(String value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(String value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(String value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLike(String value) { + addCriterion("user_id like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotLike(String value) { + addCriterion("user_id not like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(String value1, String value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(String value1, String value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andErrorNumberIsNull() { + addCriterion("error_number is null"); + return (Criteria) this; + } + + public Criteria andErrorNumberIsNotNull() { + addCriterion("error_number is not null"); + return (Criteria) this; + } + + public Criteria andErrorNumberEqualTo(Integer value) { + addCriterion("error_number =", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberNotEqualTo(Integer value) { + addCriterion("error_number <>", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberGreaterThan(Integer value) { + addCriterion("error_number >", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberGreaterThanOrEqualTo(Integer value) { + addCriterion("error_number >=", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberLessThan(Integer value) { + addCriterion("error_number <", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberLessThanOrEqualTo(Integer value) { + addCriterion("error_number <=", value, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberIn(List values) { + addCriterion("error_number in", values, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberNotIn(List values) { + addCriterion("error_number not in", values, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberBetween(Integer value1, Integer value2) { + addCriterion("error_number between", value1, value2, "errorNumber"); + return (Criteria) this; + } + + public Criteria andErrorNumberNotBetween(Integer value1, Integer value2) { + addCriterion("error_number not between", value1, value2, "errorNumber"); + return (Criteria) this; + } + + public Criteria andNumberIsNull() { + addCriterion("number is null"); + return (Criteria) this; + } + + public Criteria andNumberIsNotNull() { + addCriterion("number is not null"); + return (Criteria) this; + } + + public Criteria andNumberEqualTo(Integer value) { + addCriterion("number =", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberNotEqualTo(Integer value) { + addCriterion("number <>", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberGreaterThan(Integer value) { + addCriterion("number >", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberGreaterThanOrEqualTo(Integer value) { + addCriterion("number >=", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberLessThan(Integer value) { + addCriterion("number <", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberLessThanOrEqualTo(Integer value) { + addCriterion("number <=", value, "number"); + return (Criteria) this; + } + + public Criteria andNumberIn(List values) { + addCriterion("number in", values, "number"); + return (Criteria) this; + } + + public Criteria andNumberNotIn(List values) { + addCriterion("number not in", values, "number"); + return (Criteria) this; + } + + public Criteria andNumberBetween(Integer value1, Integer value2) { + addCriterion("number between", value1, value2, "number"); + return (Criteria) this; + } + + public Criteria andNumberNotBetween(Integer value1, Integer value2) { + addCriterion("number not between", value1, value2, "number"); + 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 diff --git a/src/main/java/com/sztzjy/bank/entity/dto/PerConsumerLoanCurrentAccountAnswerDTO.java b/src/main/java/com/sztzjy/bank/entity/dto/PerConsumerLoanCurrentAccountAnswerDTO.java new file mode 100644 index 0000000..5c7d040 --- /dev/null +++ b/src/main/java/com/sztzjy/bank/entity/dto/PerConsumerLoanCurrentAccountAnswerDTO.java @@ -0,0 +1,31 @@ +package com.sztzjy.bank.entity.dto; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @author tz + * @date 2025/1/16 10:16 + */ +@Data +public class PerConsumerLoanCurrentAccountAnswerDTO { + @ApiModelProperty(notes = "币种") + private String currency; + @ApiModelProperty(notes = "钞汇标志") + private String currencyExchangeSymbol; + + @ApiModelProperty(notes = "分级类型") + private String classificationType; + + @ApiModelProperty(notes = "账户性质") + private String natureOfAccount; + + @ApiModelProperty(notes = "凭证类型") + private String voucherType; + + @ApiModelProperty(notes = "支取密码") + private String withdrawalPassword; + + @ApiModelProperty(notes = "确认密码") + private String confirmPassword; +} diff --git a/src/main/java/com/sztzjy/bank/entity/dto/PerConsumerLoanCustomerInfoAnswerDTO.java b/src/main/java/com/sztzjy/bank/entity/dto/PerConsumerLoanCustomerInfoAnswerDTO.java new file mode 100644 index 0000000..495a618 --- /dev/null +++ b/src/main/java/com/sztzjy/bank/entity/dto/PerConsumerLoanCustomerInfoAnswerDTO.java @@ -0,0 +1,38 @@ +package com.sztzjy.bank.entity.dto; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @author tz + * @date 2025/1/15 18:22 + */ +@Data +public class PerConsumerLoanCustomerInfoAnswerDTO { + @ApiModelProperty(notes = "客户姓名") + private String customerName; + + @ApiModelProperty(notes = "民族") + private String nationality; + + @ApiModelProperty(notes = "证件类型") + private String idType; + + @ApiModelProperty(notes = "证件号码") + private String idNumber; + + @ApiModelProperty(notes = "联系电话") + private String contactNumber; + + @ApiModelProperty(notes = "就职公司") + private String employmentCompany; + + @ApiModelProperty(notes = "通讯地址") + private String mailAddress; + + @ApiModelProperty(notes = "第一联系人") + private String firstContactPerson; + + @ApiModelProperty(notes = "联系人电话") + private String contactPhone; +} diff --git a/src/main/java/com/sztzjy/bank/mapper/PerConsumerLoanCurrentAccountMapper.java b/src/main/java/com/sztzjy/bank/mapper/PerConsumerLoanCurrentAccountMapper.java new file mode 100644 index 0000000..fd86d4f --- /dev/null +++ b/src/main/java/com/sztzjy/bank/mapper/PerConsumerLoanCurrentAccountMapper.java @@ -0,0 +1,30 @@ +package com.sztzjy.bank.mapper; + +import com.sztzjy.bank.entity.PerConsumerLoanCurrentAccount; +import com.sztzjy.bank.entity.PerConsumerLoanCurrentAccountExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PerConsumerLoanCurrentAccountMapper { + long countByExample(PerConsumerLoanCurrentAccountExample example); + + int deleteByExample(PerConsumerLoanCurrentAccountExample example); + + int deleteByPrimaryKey(String id); + + int insert(PerConsumerLoanCurrentAccount record); + + int insertSelective(PerConsumerLoanCurrentAccount record); + + List selectByExample(PerConsumerLoanCurrentAccountExample example); + + PerConsumerLoanCurrentAccount selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") PerConsumerLoanCurrentAccount record, @Param("example") PerConsumerLoanCurrentAccountExample example); + + int updateByExample(@Param("record") PerConsumerLoanCurrentAccount record, @Param("example") PerConsumerLoanCurrentAccountExample example); + + int updateByPrimaryKeySelective(PerConsumerLoanCurrentAccount record); + + int updateByPrimaryKey(PerConsumerLoanCurrentAccount record); +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/bank/mapper/PerConsumerLoanCustomerInfoMapper.java b/src/main/java/com/sztzjy/bank/mapper/PerConsumerLoanCustomerInfoMapper.java new file mode 100644 index 0000000..0ba715d --- /dev/null +++ b/src/main/java/com/sztzjy/bank/mapper/PerConsumerLoanCustomerInfoMapper.java @@ -0,0 +1,30 @@ +package com.sztzjy.bank.mapper; + +import com.sztzjy.bank.entity.PerConsumerLoanCustomerInfo; +import com.sztzjy.bank.entity.PerConsumerLoanCustomerInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PerConsumerLoanCustomerInfoMapper { + long countByExample(PerConsumerLoanCustomerInfoExample example); + + int deleteByExample(PerConsumerLoanCustomerInfoExample example); + + int deleteByPrimaryKey(String id); + + int insert(PerConsumerLoanCustomerInfo record); + + int insertSelective(PerConsumerLoanCustomerInfo record); + + List selectByExample(PerConsumerLoanCustomerInfoExample example); + + PerConsumerLoanCustomerInfo selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") PerConsumerLoanCustomerInfo record, @Param("example") PerConsumerLoanCustomerInfoExample example); + + int updateByExample(@Param("record") PerConsumerLoanCustomerInfo record, @Param("example") PerConsumerLoanCustomerInfoExample example); + + int updateByPrimaryKeySelective(PerConsumerLoanCustomerInfo record); + + int updateByPrimaryKey(PerConsumerLoanCustomerInfo record); +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/bank/service/PersonalLoanService.java b/src/main/java/com/sztzjy/bank/service/PersonalLoanService.java new file mode 100644 index 0000000..ef22ff0 --- /dev/null +++ b/src/main/java/com/sztzjy/bank/service/PersonalLoanService.java @@ -0,0 +1,22 @@ +package com.sztzjy.bank.service; + +import cn.hutool.core.util.IdUtil; +import com.sztzjy.bank.entity.PerConsumerLoanCurrentAccount; +import com.sztzjy.bank.entity.PerConsumerLoanCustomerInfo; +import com.sztzjy.bank.util.ResultEntity; +import org.springframework.http.HttpStatus; + +/** + * @author tz + * @date 2025/1/15 17:12 + */ +public interface PersonalLoanService { + Integer submitCustomerInfo(PerConsumerLoanCustomerInfo loanCustomerInfo); + + PerConsumerLoanCustomerInfo getCustomerInfo(String userId, Integer number); + + Integer submitCurrentAccount(PerConsumerLoanCurrentAccount currentAccount); + + PerConsumerLoanCurrentAccount getCurrentAccount(String userId, Integer number); + +} diff --git a/src/main/java/com/sztzjy/bank/service/impl/PersonalLoanServiceImpl.java b/src/main/java/com/sztzjy/bank/service/impl/PersonalLoanServiceImpl.java new file mode 100644 index 0000000..9c0fe68 --- /dev/null +++ b/src/main/java/com/sztzjy/bank/service/impl/PersonalLoanServiceImpl.java @@ -0,0 +1,297 @@ +package com.sztzjy.bank.service.impl; + +import cn.hutool.core.util.IdUtil; +import com.alibaba.fastjson.JSON; +import com.sztzjy.bank.entity.*; +import com.sztzjy.bank.entity.dto.CustomerInformationAnswerDTO; +import com.sztzjy.bank.entity.dto.PerConsumerLoanCurrentAccountAnswerDTO; +import com.sztzjy.bank.entity.dto.PerConsumerLoanCustomerInfoAnswerDTO; +import com.sztzjy.bank.mapper.CaseAnswerInfoMapper; +import com.sztzjy.bank.mapper.CaseInfoMapper; +import com.sztzjy.bank.mapper.PerConsumerLoanCurrentAccountMapper; +import com.sztzjy.bank.mapper.PerConsumerLoanCustomerInfoMapper; +import com.sztzjy.bank.service.PersonalLoanService; +import com.sztzjy.bank.util.ConvertUtil; +import com.sztzjy.bank.util.RedisUtil; +import com.sztzjy.bank.util.ResultEntity; +import com.sztzjy.bank.util.compute.ObjectComparatorUtil; +import org.checkerframework.checker.units.qual.A; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.HttpStatus; +import org.springframework.security.core.parameters.P; +import org.springframework.stereotype.Service; +import org.springframework.util.CollectionUtils; + +import java.util.Date; +import java.util.List; +import java.util.Random; + +/** + * @author tz + * @date 2025/1/15 17:12 + */ +@Service +public class PersonalLoanServiceImpl implements PersonalLoanService { + @Autowired + PerConsumerLoanCustomerInfoMapper loanCustomerInfoMapper; + @Autowired + PerConsumerLoanCurrentAccountMapper currentAccountMapper; + @Autowired + RedisUtil redisUtil; + @Autowired + CaseInfoMapper caseInfoMapper; + @Autowired + CaseAnswerInfoMapper caseAnswerInfoMapper; + @Autowired + ConvertUtil convertUtil; + @Override + public Integer submitCustomerInfo(PerConsumerLoanCustomerInfo loanCustomerInfo) { + PerConsumerLoanCustomerInfoExample loanCustomerInfoExample=new PerConsumerLoanCustomerInfoExample(); + loanCustomerInfoExample.createCriteria().andUserIdEqualTo(loanCustomerInfo.getUserId()) + .andNumberEqualTo(loanCustomerInfo.getNumber()); + + List loanCustomerInfos = loanCustomerInfoMapper.selectByExample(loanCustomerInfoExample); + if(CollectionUtils.isEmpty(loanCustomerInfos)){ //添加数据 + loanCustomerInfo.setId(IdUtil.simpleUUID()); + loanCustomerInfo.setCreateTime(new Date()); + + //检验是提交还是保存 + if(loanCustomerInfo.getSubmitStatus()==1){ //提交则计算错误次数 + //计算错误次数 + loanCustomerInfo = submitByCustomerInfoCaculate(loanCustomerInfo); + + //生成唯一的九位数的客户号,去重 + int random; + List loanCustomerInfoList; + do { + random = getRandom(); + + loanCustomerInfoExample.clear();//清空之前的条件,以便重新使用 + loanCustomerInfoExample.createCriteria().andNumberEqualTo(loanCustomerInfo.getNumber()) + .andCareerNotEqualTo(Integer.toString(random)); + + loanCustomerInfoList = loanCustomerInfoMapper.selectByExample(loanCustomerInfoExample); + }while (loanCustomerInfoList!=null && loanCustomerInfoList.isEmpty()); // 如果存在相同的客户号,则继续生成 + + loanCustomerInfo.setCustomerNo(random); + } + + + //否则保存不计算,直接添加 + return loanCustomerInfoMapper.insert(loanCustomerInfo); + + }else { //已有操作记录 + PerConsumerLoanCustomerInfo perConsumerLoanCustomerInfo = loanCustomerInfos.get(0); + //取出id,以防被覆盖 + String id = perConsumerLoanCustomerInfo.getId(); + + //判断是否已经提交,已提交保存记录不计分,未提交保存记录并计分 + if(perConsumerLoanCustomerInfo.getSubmitStatus()!=1){ + + //检验本次是提交还是保存 + if(loanCustomerInfo.getSubmitStatus()==1){ //提交则计算错误次数 + //计算错误次数 + loanCustomerInfo = submitByCustomerInfoCaculate(loanCustomerInfo); + + //生成唯一的九位数的客户号,去重 + int random; + List loanCustomerInfoList; + do { + random = getRandom(); + + loanCustomerInfoExample.clear();//清空之前的条件,以便重新使用 + loanCustomerInfoExample.createCriteria().andNumberEqualTo(loanCustomerInfo.getNumber()) + .andCareerNotEqualTo(Integer.toString(random)); + + loanCustomerInfoList = loanCustomerInfoMapper.selectByExample(loanCustomerInfoExample); + }while (loanCustomerInfoList!=null && loanCustomerInfoList.isEmpty()); // 如果存在相同的客户号,则继续生成 + + loanCustomerInfo.setCustomerNo(random); + } + + } + + loanCustomerInfo.setId(id); + loanCustomerInfo.setUpdateTime(new Date()); + + return loanCustomerInfoMapper.updateByPrimaryKeySelective(loanCustomerInfo); + } + + } + + @Override + public PerConsumerLoanCustomerInfo getCustomerInfo(String userId, Integer number) { + PerConsumerLoanCustomerInfoExample loanCustomerInfoExample=new PerConsumerLoanCustomerInfoExample(); + loanCustomerInfoExample.createCriteria().andUserIdEqualTo(userId).andNumberEqualTo(number); + + return loanCustomerInfoMapper.selectByExample(loanCustomerInfoExample).get(0); + } + + @Override + public Integer submitCurrentAccount(PerConsumerLoanCurrentAccount currentAccount) { + + PerConsumerLoanCurrentAccountExample currentAccountExample=new PerConsumerLoanCurrentAccountExample(); + currentAccountExample.createCriteria().andUserIdEqualTo(currentAccount.getUserId()) + .andNumberEqualTo(currentAccount.getNumber()); + + + //查询生成的客户号 + PerConsumerLoanCustomerInfoExample loanCustomerInfoExample=new PerConsumerLoanCustomerInfoExample(); + loanCustomerInfoExample.createCriteria().andUserIdEqualTo(currentAccount.getUserId()) + .andNumberEqualTo(currentAccount.getNumber()); + + List loanCustomerInfos = loanCustomerInfoMapper.selectByExample(loanCustomerInfoExample); + + List currentAccounts = currentAccountMapper.selectByExample(currentAccountExample); + if(CollectionUtils.isEmpty(currentAccounts)){ //添加数据 + currentAccount.setId(IdUtil.simpleUUID()); + currentAccount.setCreateTime(new Date()); + + //检验是提交还是保存 + if(currentAccount.getSubmitStatus()==1){ //提交则计算错误次数 + //计算错误次数 + currentAccount = submitByCurrentAccountCaculate(currentAccount); + + + //生成银行账号 + Random random = new Random(); + + // 生成六位随机数字,再拼接客户号 + int i = 100000 + random.nextInt(900000); + + int bankCardNumber= Integer.parseInt(loanCustomerInfos.get(0).getCustomerNo()+String.valueOf(i)); + + currentAccount.setCustomerNo(bankCardNumber); + } + + + //否则保存不计算,直接添加 + return currentAccountMapper.insert(currentAccount); + + }else { //已有操作记录 + PerConsumerLoanCurrentAccount consumerLoanCurrentAccount = currentAccounts.get(0); + //取出id,以防被覆盖 + String id = consumerLoanCurrentAccount.getId(); + + //判断是否已经提交,已提交保存记录不计分,未提交保存记录并计分 + if(consumerLoanCurrentAccount.getSubmitStatus()!=1){ + + //检验本次是提交还是保存 + if(currentAccount.getSubmitStatus()==1){ //提交则计算错误次数 + //计算错误次数 + currentAccount = submitByCurrentAccountCaculate(currentAccount); + + //生成银行账号 + Random random = new Random(); + + // 生成六位随机数字,再拼接客户号 + int i = 100000 + random.nextInt(900000); + + int bankCardNumber= Integer.parseInt(loanCustomerInfos.get(0).getCustomerNo()+String.valueOf(i)); + + currentAccount.setCustomerNo(bankCardNumber); + + } + + } + + currentAccount.setId(id); + currentAccount.setUpdateTime(new Date()); + + return currentAccountMapper.updateByPrimaryKeySelective(currentAccount); + } + } + + @Override + public PerConsumerLoanCurrentAccount getCurrentAccount(String userId, Integer number) { + PerConsumerLoanCurrentAccountExample loanCurrentAccountExample=new PerConsumerLoanCurrentAccountExample(); + loanCurrentAccountExample.createCriteria().andUserIdEqualTo(userId).andNumberEqualTo(number); + return currentAccountMapper.selectByExample(loanCurrentAccountExample).get(0); + } + + + //录入客户信息计算 + private PerConsumerLoanCustomerInfo submitByCustomerInfoCaculate(PerConsumerLoanCustomerInfo loanCustomerInfo) { + + String answer = redisUtil.get("bank" + "-个人贷款业务" + "-录入客户信息"); + if (answer == null) { + CaseInfoExample caseInfoExample = new CaseInfoExample(); + caseInfoExample.createCriteria().andLargeModuleEqualTo("个人贷款业务").andModuleEqualTo("录入客户信息").andNumberEqualTo(loanCustomerInfo.getNumber()); + List caseInfoList = caseInfoMapper.selectByExampleWithBLOBs(caseInfoExample); + if (!CollectionUtils.isEmpty(caseInfoList)) { + CaseInfo caseInfo = caseInfoList.get(0); + CaseAnswerInfoExample caseAnswerInfoExample = new CaseAnswerInfoExample(); + caseAnswerInfoExample.createCriteria().andCaseIdEqualTo(caseInfo.getCaseId()); + List answerInfoList = caseAnswerInfoMapper.selectByExampleWithBLOBs(caseAnswerInfoExample); + if (!CollectionUtils.isEmpty(answerInfoList)) { + String info = answerInfoList.get(0).getAnswer(); + redisUtil.set("bank" + "-个人贷款业务" + "-录入客户信息",info,3600); + } + } + } + + // 解析 JSON 字符串 + PerConsumerLoanCustomerInfoAnswerDTO answerDTO = JSON.parseObject(answer, PerConsumerLoanCustomerInfoAnswerDTO.class); + + PerConsumerLoanCustomerInfoAnswerDTO loanCustomerInfoAnswerDTO = convertUtil.entityToDTO(loanCustomerInfo, PerConsumerLoanCustomerInfoAnswerDTO.class); + + try { + int update = ObjectComparatorUtil.countDifferences(answerDTO, loanCustomerInfoAnswerDTO); + + //错误次数 + loanCustomerInfo.setErrorNumber(update); + + return loanCustomerInfo; + } catch (IllegalAccessException e) { + throw new RuntimeException(e); + } + + } + + //开设活期账户计算 + private PerConsumerLoanCurrentAccount submitByCurrentAccountCaculate(PerConsumerLoanCurrentAccount currentAccount) { + + String answer = redisUtil.get("bank" + "-个人贷款业务" + "-开设活期账户"); + if (answer == null) { + CaseInfoExample caseInfoExample = new CaseInfoExample(); + caseInfoExample.createCriteria().andLargeModuleEqualTo("个人贷款业务").andModuleEqualTo("开设活期账户") + .andNumberEqualTo(currentAccount.getNumber()); + List caseInfoList = caseInfoMapper.selectByExampleWithBLOBs(caseInfoExample); + if (!CollectionUtils.isEmpty(caseInfoList)) { + CaseInfo caseInfo = caseInfoList.get(0); + CaseAnswerInfoExample caseAnswerInfoExample = new CaseAnswerInfoExample(); + caseAnswerInfoExample.createCriteria().andCaseIdEqualTo(caseInfo.getCaseId()); + List answerInfoList = caseAnswerInfoMapper.selectByExampleWithBLOBs(caseAnswerInfoExample); + if (!CollectionUtils.isEmpty(answerInfoList)) { + String info = answerInfoList.get(0).getAnswer(); + redisUtil.set("bank" + "-个人贷款业务" + "-开设活期账户",info,3600); + } + } + } + + // 解析 JSON 字符串 + PerConsumerLoanCurrentAccountAnswerDTO answerDTO = JSON.parseObject(answer, PerConsumerLoanCurrentAccountAnswerDTO.class); + + PerConsumerLoanCurrentAccountAnswerDTO currentAccountAnswerDTO = convertUtil.entityToDTO(currentAccount, PerConsumerLoanCurrentAccountAnswerDTO.class); + + try { + int update = ObjectComparatorUtil.countDifferences(answerDTO, currentAccountAnswerDTO); + + //错误次数 + currentAccount.setErrorNumber(update); + + return currentAccount; + } catch (IllegalAccessException e) { + throw new RuntimeException(e); + } + + } + + private Integer getRandom(){ + Random random = new Random(); + + // 生成九位随机数字 + return 100000000 + random.nextInt(900000000); + + } +} diff --git a/src/main/java/com/sztzjy/bank/util/compute/ObjectComparatorUtil.java b/src/main/java/com/sztzjy/bank/util/compute/ObjectComparatorUtil.java new file mode 100644 index 0000000..efc0e2e --- /dev/null +++ b/src/main/java/com/sztzjy/bank/util/compute/ObjectComparatorUtil.java @@ -0,0 +1,42 @@ +package com.sztzjy.bank.util.compute; + +import org.springframework.stereotype.Component; + +import java.lang.reflect.Field; + +/** + * @author tz + * @date 2025/1/15 18:31 + */ +@Component +public class ObjectComparatorUtil { + + //比较两个对象属性值,返回不同属性值的个数 + public static int countDifferences(Object obj1, Object obj2) throws IllegalAccessException { + if (obj1 == null || obj2 == null) { + throw new IllegalArgumentException("Objects must not be null"); + } + + if (!obj1.getClass().equals(obj2.getClass())) { + throw new IllegalArgumentException("Objects must be of the same class"); + } + + int differenceCount = 0; + Field[] fields = obj1.getClass().getDeclaredFields(); + + for (Field field : fields) { + field.setAccessible(true); + Object value1 = field.get(obj1); + Object value2 = field.get(obj2); + if (value1 == null) { + if (value2 != null) { + differenceCount++; + } + } else if (!value1.equals(value2)) { + differenceCount++; + } + } + + return differenceCount; + } +} diff --git a/src/main/resources/mappers/PerConsumerLoanCurrentAccountMapper.xml b/src/main/resources/mappers/PerConsumerLoanCurrentAccountMapper.xml new file mode 100644 index 0000000..869db0b --- /dev/null +++ b/src/main/resources/mappers/PerConsumerLoanCurrentAccountMapper.xml @@ -0,0 +1,434 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, customer_name, customer_no, currency, currency_exchange_symbol, classification_type, + nature_of_account, voucher_type, withdrawal_method, withdrawal_password, confirm_password, + bank_card_number, create_time, update_time, save_status, submit_status, user_id, + error_number, number + + + + + delete from per_consumer_loan_current_account + where id = #{id,jdbcType=VARCHAR} + + + delete from per_consumer_loan_current_account + + + + + + insert into per_consumer_loan_current_account (id, customer_name, customer_no, + currency, currency_exchange_symbol, classification_type, + nature_of_account, voucher_type, withdrawal_method, + withdrawal_password, confirm_password, bank_card_number, + create_time, update_time, save_status, + submit_status, user_id, error_number, + number) + values (#{id,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, #{customerNo,jdbcType=INTEGER}, + #{currency,jdbcType=VARCHAR}, #{currencyExchangeSymbol,jdbcType=VARCHAR}, #{classificationType,jdbcType=VARCHAR}, + #{natureOfAccount,jdbcType=VARCHAR}, #{voucherType,jdbcType=VARCHAR}, #{withdrawalMethod,jdbcType=VARCHAR}, + #{withdrawalPassword,jdbcType=VARCHAR}, #{confirmPassword,jdbcType=VARCHAR}, #{bankCardNumber,jdbcType=INTEGER}, + #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{saveStatus,jdbcType=INTEGER}, + #{submitStatus,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, #{errorNumber,jdbcType=INTEGER}, + #{number,jdbcType=INTEGER}) + + + insert into per_consumer_loan_current_account + + + id, + + + customer_name, + + + customer_no, + + + currency, + + + currency_exchange_symbol, + + + classification_type, + + + nature_of_account, + + + voucher_type, + + + withdrawal_method, + + + withdrawal_password, + + + confirm_password, + + + bank_card_number, + + + create_time, + + + update_time, + + + save_status, + + + submit_status, + + + user_id, + + + error_number, + + + number, + + + + + #{id,jdbcType=VARCHAR}, + + + #{customerName,jdbcType=VARCHAR}, + + + #{customerNo,jdbcType=INTEGER}, + + + #{currency,jdbcType=VARCHAR}, + + + #{currencyExchangeSymbol,jdbcType=VARCHAR}, + + + #{classificationType,jdbcType=VARCHAR}, + + + #{natureOfAccount,jdbcType=VARCHAR}, + + + #{voucherType,jdbcType=VARCHAR}, + + + #{withdrawalMethod,jdbcType=VARCHAR}, + + + #{withdrawalPassword,jdbcType=VARCHAR}, + + + #{confirmPassword,jdbcType=VARCHAR}, + + + #{bankCardNumber,jdbcType=INTEGER}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{saveStatus,jdbcType=INTEGER}, + + + #{submitStatus,jdbcType=INTEGER}, + + + #{userId,jdbcType=VARCHAR}, + + + #{errorNumber,jdbcType=INTEGER}, + + + #{number,jdbcType=INTEGER}, + + + + + + update per_consumer_loan_current_account + + + id = #{record.id,jdbcType=VARCHAR}, + + + customer_name = #{record.customerName,jdbcType=VARCHAR}, + + + customer_no = #{record.customerNo,jdbcType=INTEGER}, + + + currency = #{record.currency,jdbcType=VARCHAR}, + + + currency_exchange_symbol = #{record.currencyExchangeSymbol,jdbcType=VARCHAR}, + + + classification_type = #{record.classificationType,jdbcType=VARCHAR}, + + + nature_of_account = #{record.natureOfAccount,jdbcType=VARCHAR}, + + + voucher_type = #{record.voucherType,jdbcType=VARCHAR}, + + + withdrawal_method = #{record.withdrawalMethod,jdbcType=VARCHAR}, + + + withdrawal_password = #{record.withdrawalPassword,jdbcType=VARCHAR}, + + + confirm_password = #{record.confirmPassword,jdbcType=VARCHAR}, + + + bank_card_number = #{record.bankCardNumber,jdbcType=INTEGER}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + save_status = #{record.saveStatus,jdbcType=INTEGER}, + + + submit_status = #{record.submitStatus,jdbcType=INTEGER}, + + + user_id = #{record.userId,jdbcType=VARCHAR}, + + + error_number = #{record.errorNumber,jdbcType=INTEGER}, + + + number = #{record.number,jdbcType=INTEGER}, + + + + + + + + update per_consumer_loan_current_account + set id = #{record.id,jdbcType=VARCHAR}, + customer_name = #{record.customerName,jdbcType=VARCHAR}, + customer_no = #{record.customerNo,jdbcType=INTEGER}, + currency = #{record.currency,jdbcType=VARCHAR}, + currency_exchange_symbol = #{record.currencyExchangeSymbol,jdbcType=VARCHAR}, + classification_type = #{record.classificationType,jdbcType=VARCHAR}, + nature_of_account = #{record.natureOfAccount,jdbcType=VARCHAR}, + voucher_type = #{record.voucherType,jdbcType=VARCHAR}, + withdrawal_method = #{record.withdrawalMethod,jdbcType=VARCHAR}, + withdrawal_password = #{record.withdrawalPassword,jdbcType=VARCHAR}, + confirm_password = #{record.confirmPassword,jdbcType=VARCHAR}, + bank_card_number = #{record.bankCardNumber,jdbcType=INTEGER}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + save_status = #{record.saveStatus,jdbcType=INTEGER}, + submit_status = #{record.submitStatus,jdbcType=INTEGER}, + user_id = #{record.userId,jdbcType=VARCHAR}, + error_number = #{record.errorNumber,jdbcType=INTEGER}, + number = #{record.number,jdbcType=INTEGER} + + + + + + update per_consumer_loan_current_account + + + customer_name = #{customerName,jdbcType=VARCHAR}, + + + customer_no = #{customerNo,jdbcType=INTEGER}, + + + currency = #{currency,jdbcType=VARCHAR}, + + + currency_exchange_symbol = #{currencyExchangeSymbol,jdbcType=VARCHAR}, + + + classification_type = #{classificationType,jdbcType=VARCHAR}, + + + nature_of_account = #{natureOfAccount,jdbcType=VARCHAR}, + + + voucher_type = #{voucherType,jdbcType=VARCHAR}, + + + withdrawal_method = #{withdrawalMethod,jdbcType=VARCHAR}, + + + withdrawal_password = #{withdrawalPassword,jdbcType=VARCHAR}, + + + confirm_password = #{confirmPassword,jdbcType=VARCHAR}, + + + bank_card_number = #{bankCardNumber,jdbcType=INTEGER}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + save_status = #{saveStatus,jdbcType=INTEGER}, + + + submit_status = #{submitStatus,jdbcType=INTEGER}, + + + user_id = #{userId,jdbcType=VARCHAR}, + + + error_number = #{errorNumber,jdbcType=INTEGER}, + + + number = #{number,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=VARCHAR} + + + update per_consumer_loan_current_account + set customer_name = #{customerName,jdbcType=VARCHAR}, + customer_no = #{customerNo,jdbcType=INTEGER}, + currency = #{currency,jdbcType=VARCHAR}, + currency_exchange_symbol = #{currencyExchangeSymbol,jdbcType=VARCHAR}, + classification_type = #{classificationType,jdbcType=VARCHAR}, + nature_of_account = #{natureOfAccount,jdbcType=VARCHAR}, + voucher_type = #{voucherType,jdbcType=VARCHAR}, + withdrawal_method = #{withdrawalMethod,jdbcType=VARCHAR}, + withdrawal_password = #{withdrawalPassword,jdbcType=VARCHAR}, + confirm_password = #{confirmPassword,jdbcType=VARCHAR}, + bank_card_number = #{bankCardNumber,jdbcType=INTEGER}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + save_status = #{saveStatus,jdbcType=INTEGER}, + submit_status = #{submitStatus,jdbcType=INTEGER}, + user_id = #{userId,jdbcType=VARCHAR}, + error_number = #{errorNumber,jdbcType=INTEGER}, + number = #{number,jdbcType=INTEGER} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/resources/mappers/PerConsumerLoanCustomerInfoMapper.xml b/src/main/resources/mappers/PerConsumerLoanCustomerInfoMapper.xml new file mode 100644 index 0000000..7e06418 --- /dev/null +++ b/src/main/resources/mappers/PerConsumerLoanCustomerInfoMapper.xml @@ -0,0 +1,544 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, customer_name, customer_no, nationality, id_type, id_number, marital_status, + career, contact_number, position, years_of_employment, monthly_pay, annual_income, + employment_company, mail_address, residence_address, first_contact_person, relationship, + contact_phone, create_time, update_time, save_status, submit_status, user_id, error_number, + number + + + + + delete from per_consumer_loan_customer_info + where id = #{id,jdbcType=VARCHAR} + + + delete from per_consumer_loan_customer_info + + + + + + insert into per_consumer_loan_customer_info (id, customer_name, customer_no, + nationality, id_type, id_number, + marital_status, career, contact_number, + position, years_of_employment, monthly_pay, + annual_income, employment_company, mail_address, + residence_address, first_contact_person, relationship, + contact_phone, create_time, update_time, + save_status, submit_status, user_id, + error_number, number) + values (#{id,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, #{customerNo,jdbcType=INTEGER}, + #{nationality,jdbcType=VARCHAR}, #{idType,jdbcType=VARCHAR}, #{idNumber,jdbcType=VARCHAR}, + #{maritalStatus,jdbcType=VARCHAR}, #{career,jdbcType=VARCHAR}, #{contactNumber,jdbcType=VARCHAR}, + #{position,jdbcType=VARCHAR}, #{yearsOfEmployment,jdbcType=VARCHAR}, #{monthlyPay,jdbcType=VARCHAR}, + #{annualIncome,jdbcType=VARCHAR}, #{employmentCompany,jdbcType=VARCHAR}, #{mailAddress,jdbcType=VARCHAR}, + #{residenceAddress,jdbcType=VARCHAR}, #{firstContactPerson,jdbcType=VARCHAR}, #{relationship,jdbcType=VARCHAR}, + #{contactPhone,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, + #{saveStatus,jdbcType=INTEGER}, #{submitStatus,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR}, + #{errorNumber,jdbcType=INTEGER}, #{number,jdbcType=INTEGER}) + + + insert into per_consumer_loan_customer_info + + + id, + + + customer_name, + + + customer_no, + + + nationality, + + + id_type, + + + id_number, + + + marital_status, + + + career, + + + contact_number, + + + position, + + + years_of_employment, + + + monthly_pay, + + + annual_income, + + + employment_company, + + + mail_address, + + + residence_address, + + + first_contact_person, + + + relationship, + + + contact_phone, + + + create_time, + + + update_time, + + + save_status, + + + submit_status, + + + user_id, + + + error_number, + + + number, + + + + + #{id,jdbcType=VARCHAR}, + + + #{customerName,jdbcType=VARCHAR}, + + + #{customerNo,jdbcType=INTEGER}, + + + #{nationality,jdbcType=VARCHAR}, + + + #{idType,jdbcType=VARCHAR}, + + + #{idNumber,jdbcType=VARCHAR}, + + + #{maritalStatus,jdbcType=VARCHAR}, + + + #{career,jdbcType=VARCHAR}, + + + #{contactNumber,jdbcType=VARCHAR}, + + + #{position,jdbcType=VARCHAR}, + + + #{yearsOfEmployment,jdbcType=VARCHAR}, + + + #{monthlyPay,jdbcType=VARCHAR}, + + + #{annualIncome,jdbcType=VARCHAR}, + + + #{employmentCompany,jdbcType=VARCHAR}, + + + #{mailAddress,jdbcType=VARCHAR}, + + + #{residenceAddress,jdbcType=VARCHAR}, + + + #{firstContactPerson,jdbcType=VARCHAR}, + + + #{relationship,jdbcType=VARCHAR}, + + + #{contactPhone,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{saveStatus,jdbcType=INTEGER}, + + + #{submitStatus,jdbcType=INTEGER}, + + + #{userId,jdbcType=VARCHAR}, + + + #{errorNumber,jdbcType=INTEGER}, + + + #{number,jdbcType=INTEGER}, + + + + + + update per_consumer_loan_customer_info + + + id = #{record.id,jdbcType=VARCHAR}, + + + customer_name = #{record.customerName,jdbcType=VARCHAR}, + + + customer_no = #{record.customerNo,jdbcType=INTEGER}, + + + nationality = #{record.nationality,jdbcType=VARCHAR}, + + + id_type = #{record.idType,jdbcType=VARCHAR}, + + + id_number = #{record.idNumber,jdbcType=VARCHAR}, + + + marital_status = #{record.maritalStatus,jdbcType=VARCHAR}, + + + career = #{record.career,jdbcType=VARCHAR}, + + + contact_number = #{record.contactNumber,jdbcType=VARCHAR}, + + + position = #{record.position,jdbcType=VARCHAR}, + + + years_of_employment = #{record.yearsOfEmployment,jdbcType=VARCHAR}, + + + monthly_pay = #{record.monthlyPay,jdbcType=VARCHAR}, + + + annual_income = #{record.annualIncome,jdbcType=VARCHAR}, + + + employment_company = #{record.employmentCompany,jdbcType=VARCHAR}, + + + mail_address = #{record.mailAddress,jdbcType=VARCHAR}, + + + residence_address = #{record.residenceAddress,jdbcType=VARCHAR}, + + + first_contact_person = #{record.firstContactPerson,jdbcType=VARCHAR}, + + + relationship = #{record.relationship,jdbcType=VARCHAR}, + + + contact_phone = #{record.contactPhone,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + save_status = #{record.saveStatus,jdbcType=INTEGER}, + + + submit_status = #{record.submitStatus,jdbcType=INTEGER}, + + + user_id = #{record.userId,jdbcType=VARCHAR}, + + + error_number = #{record.errorNumber,jdbcType=INTEGER}, + + + number = #{record.number,jdbcType=INTEGER}, + + + + + + + + update per_consumer_loan_customer_info + set id = #{record.id,jdbcType=VARCHAR}, + customer_name = #{record.customerName,jdbcType=VARCHAR}, + customer_no = #{record.customerNo,jdbcType=INTEGER}, + nationality = #{record.nationality,jdbcType=VARCHAR}, + id_type = #{record.idType,jdbcType=VARCHAR}, + id_number = #{record.idNumber,jdbcType=VARCHAR}, + marital_status = #{record.maritalStatus,jdbcType=VARCHAR}, + career = #{record.career,jdbcType=VARCHAR}, + contact_number = #{record.contactNumber,jdbcType=VARCHAR}, + position = #{record.position,jdbcType=VARCHAR}, + years_of_employment = #{record.yearsOfEmployment,jdbcType=VARCHAR}, + monthly_pay = #{record.monthlyPay,jdbcType=VARCHAR}, + annual_income = #{record.annualIncome,jdbcType=VARCHAR}, + employment_company = #{record.employmentCompany,jdbcType=VARCHAR}, + mail_address = #{record.mailAddress,jdbcType=VARCHAR}, + residence_address = #{record.residenceAddress,jdbcType=VARCHAR}, + first_contact_person = #{record.firstContactPerson,jdbcType=VARCHAR}, + relationship = #{record.relationship,jdbcType=VARCHAR}, + contact_phone = #{record.contactPhone,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + save_status = #{record.saveStatus,jdbcType=INTEGER}, + submit_status = #{record.submitStatus,jdbcType=INTEGER}, + user_id = #{record.userId,jdbcType=VARCHAR}, + error_number = #{record.errorNumber,jdbcType=INTEGER}, + number = #{record.number,jdbcType=INTEGER} + + + + + + update per_consumer_loan_customer_info + + + customer_name = #{customerName,jdbcType=VARCHAR}, + + + customer_no = #{customerNo,jdbcType=INTEGER}, + + + nationality = #{nationality,jdbcType=VARCHAR}, + + + id_type = #{idType,jdbcType=VARCHAR}, + + + id_number = #{idNumber,jdbcType=VARCHAR}, + + + marital_status = #{maritalStatus,jdbcType=VARCHAR}, + + + career = #{career,jdbcType=VARCHAR}, + + + contact_number = #{contactNumber,jdbcType=VARCHAR}, + + + position = #{position,jdbcType=VARCHAR}, + + + years_of_employment = #{yearsOfEmployment,jdbcType=VARCHAR}, + + + monthly_pay = #{monthlyPay,jdbcType=VARCHAR}, + + + annual_income = #{annualIncome,jdbcType=VARCHAR}, + + + employment_company = #{employmentCompany,jdbcType=VARCHAR}, + + + mail_address = #{mailAddress,jdbcType=VARCHAR}, + + + residence_address = #{residenceAddress,jdbcType=VARCHAR}, + + + first_contact_person = #{firstContactPerson,jdbcType=VARCHAR}, + + + relationship = #{relationship,jdbcType=VARCHAR}, + + + contact_phone = #{contactPhone,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + save_status = #{saveStatus,jdbcType=INTEGER}, + + + submit_status = #{submitStatus,jdbcType=INTEGER}, + + + user_id = #{userId,jdbcType=VARCHAR}, + + + error_number = #{errorNumber,jdbcType=INTEGER}, + + + number = #{number,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=VARCHAR} + + + update per_consumer_loan_customer_info + set customer_name = #{customerName,jdbcType=VARCHAR}, + customer_no = #{customerNo,jdbcType=INTEGER}, + nationality = #{nationality,jdbcType=VARCHAR}, + id_type = #{idType,jdbcType=VARCHAR}, + id_number = #{idNumber,jdbcType=VARCHAR}, + marital_status = #{maritalStatus,jdbcType=VARCHAR}, + career = #{career,jdbcType=VARCHAR}, + contact_number = #{contactNumber,jdbcType=VARCHAR}, + position = #{position,jdbcType=VARCHAR}, + years_of_employment = #{yearsOfEmployment,jdbcType=VARCHAR}, + monthly_pay = #{monthlyPay,jdbcType=VARCHAR}, + annual_income = #{annualIncome,jdbcType=VARCHAR}, + employment_company = #{employmentCompany,jdbcType=VARCHAR}, + mail_address = #{mailAddress,jdbcType=VARCHAR}, + residence_address = #{residenceAddress,jdbcType=VARCHAR}, + first_contact_person = #{firstContactPerson,jdbcType=VARCHAR}, + relationship = #{relationship,jdbcType=VARCHAR}, + contact_phone = #{contactPhone,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + save_status = #{saveStatus,jdbcType=INTEGER}, + submit_status = #{submitStatus,jdbcType=INTEGER}, + user_id = #{userId,jdbcType=VARCHAR}, + error_number = #{errorNumber,jdbcType=INTEGER}, + number = #{number,jdbcType=INTEGER} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file