公共计分方法修改

main
@t2652009480 1 week ago
parent 077ab97c38
commit e98f525fc1

@ -1,9 +1,7 @@
package com.sztzjy.bank.controller.stu;
import com.sztzjy.bank.annotation.AnonymousAccess;
import com.sztzjy.bank.entity.ApplicationOpeningLetterCredit;
import com.sztzjy.bank.entity.PostLoanInvestigation;
import com.sztzjy.bank.entity.TradeContract;
import com.sztzjy.bank.entity.*;
import com.sztzjy.bank.entity.dto.ApplicationForOpeningDTO;
import com.sztzjy.bank.entity.dto.OutwardRemittanceDTO;
import com.sztzjy.bank.service.ImportletterService;
@ -96,4 +94,55 @@ public class ImportletterController {
importletterService.submitIssuanceReview(userId,number,type,notes);
return new ResultEntity<>(HttpStatus.OK);
}
@AnonymousAccess
@ApiOperation("开立信用证-提交/保存")
@PostMapping("submitOpeningLetterCredit")
public ResultEntity submitOpeningLetterCredit(@Valid @RequestBody OpeningLetterCredit openingLetterCredit) {
Integer i = importletterService.submitOpeningLetterCredit(openingLetterCredit);
String type;
if(openingLetterCredit.getSubmitStatus()==1){
type="提交";
}else {
type="保存";
}
if(i>0){
return new ResultEntity<>(HttpStatus.OK,type+"成功");
}else {
return new ResultEntity<>(HttpStatus.OK,type+"失败");
}
}
@AnonymousAccess
@ApiOperation("开立信用证-操作记录回显")
@GetMapping("getOpeningLetterCredit")
public ResultEntity<OpeningLetterCredit> getOpeningLetterCredit(@ApiParam("用户ID") String userId,
@ApiParam("案例序号") Integer number,
@ApiParam("模块") String module) {
return new ResultEntity<>(importletterService.getOpeningLetterCredit(userId,number,module));
}
@AnonymousAccess
@ApiOperation("进口押汇-提交/保存")
@PostMapping("submitImportBillAdvance")
public ResultEntity submitImportBillAdvance(@Valid @RequestBody ImportBillAdvance importBillAdvance) {
Integer i = importletterService.submitImportBillAdvance(importBillAdvance);
String type;
if(importBillAdvance.getSubmitStatus()==1){
type="提交";
}else {
type="保存";
}
if(i>0){
return new ResultEntity<>(HttpStatus.OK,type+"成功");
}else {
return new ResultEntity<>(HttpStatus.OK,type+"失败");
}
}
}

@ -1,9 +1,7 @@
package com.sztzjy.bank.entity;
import java.util.Date;
import java.util.UUID;
import cn.hutool.core.util.IdUtil;
import io.swagger.annotations.ApiModelProperty;
/**
*
@ -66,13 +64,12 @@ public class CreditCardCollectionInfo {
@ApiModelProperty(notes = "第几套案例1、2、3")
private Integer number;
public CreditCardCollectionInfo(String userId,Integer number){
this.id= IdUtil.simpleUUID();
this.userId=userId;
this.number=number;
this.createTime=new Date();
this.submitStatus=0;
}
@ApiModelProperty(notes = "卡号")
private String cardNumber;
@ApiModelProperty(notes = "申请时间")
private Date applicationTime;
public String getId() {
return id;
}
@ -216,4 +213,20 @@ public class CreditCardCollectionInfo {
public void setNumber(Integer number) {
this.number = number;
}
public String getCardNumber() {
return cardNumber;
}
public void setCardNumber(String cardNumber) {
this.cardNumber = cardNumber == null ? null : cardNumber.trim();
}
public Date getApplicationTime() {
return applicationTime;
}
public void setApplicationTime(Date applicationTime) {
this.applicationTime = applicationTime;
}
}

@ -1274,6 +1274,136 @@ public class CreditCardCollectionInfoExample {
addCriterion("number not between", value1, value2, "number");
return (Criteria) this;
}
public Criteria andCardNumberIsNull() {
addCriterion("card_number is null");
return (Criteria) this;
}
public Criteria andCardNumberIsNotNull() {
addCriterion("card_number is not null");
return (Criteria) this;
}
public Criteria andCardNumberEqualTo(String value) {
addCriterion("card_number =", value, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberNotEqualTo(String value) {
addCriterion("card_number <>", value, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberGreaterThan(String value) {
addCriterion("card_number >", value, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberGreaterThanOrEqualTo(String value) {
addCriterion("card_number >=", value, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberLessThan(String value) {
addCriterion("card_number <", value, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberLessThanOrEqualTo(String value) {
addCriterion("card_number <=", value, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberLike(String value) {
addCriterion("card_number like", value, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberNotLike(String value) {
addCriterion("card_number not like", value, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberIn(List<String> values) {
addCriterion("card_number in", values, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberNotIn(List<String> values) {
addCriterion("card_number not in", values, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberBetween(String value1, String value2) {
addCriterion("card_number between", value1, value2, "cardNumber");
return (Criteria) this;
}
public Criteria andCardNumberNotBetween(String value1, String value2) {
addCriterion("card_number not between", value1, value2, "cardNumber");
return (Criteria) this;
}
public Criteria andApplicationTimeIsNull() {
addCriterion("application_time is null");
return (Criteria) this;
}
public Criteria andApplicationTimeIsNotNull() {
addCriterion("application_time is not null");
return (Criteria) this;
}
public Criteria andApplicationTimeEqualTo(Date value) {
addCriterion("application_time =", value, "applicationTime");
return (Criteria) this;
}
public Criteria andApplicationTimeNotEqualTo(Date value) {
addCriterion("application_time <>", value, "applicationTime");
return (Criteria) this;
}
public Criteria andApplicationTimeGreaterThan(Date value) {
addCriterion("application_time >", value, "applicationTime");
return (Criteria) this;
}
public Criteria andApplicationTimeGreaterThanOrEqualTo(Date value) {
addCriterion("application_time >=", value, "applicationTime");
return (Criteria) this;
}
public Criteria andApplicationTimeLessThan(Date value) {
addCriterion("application_time <", value, "applicationTime");
return (Criteria) this;
}
public Criteria andApplicationTimeLessThanOrEqualTo(Date value) {
addCriterion("application_time <=", value, "applicationTime");
return (Criteria) this;
}
public Criteria andApplicationTimeIn(List<Date> values) {
addCriterion("application_time in", values, "applicationTime");
return (Criteria) this;
}
public Criteria andApplicationTimeNotIn(List<Date> values) {
addCriterion("application_time not in", values, "applicationTime");
return (Criteria) this;
}
public Criteria andApplicationTimeBetween(Date value1, Date value2) {
addCriterion("application_time between", value1, value2, "applicationTime");
return (Criteria) this;
}
public Criteria andApplicationTimeNotBetween(Date value1, Date value2) {
addCriterion("application_time not between", value1, value2, "applicationTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {

@ -0,0 +1,199 @@
package com.sztzjy.bank.entity;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
/**
*
*
* @author whb
* import_bill_advance
*/
public class ImportBillAdvance {
@ApiModelProperty(notes = "ID")
private String id;
@ApiModelProperty(notes = "保证方式")
private String guaranteeMethod;
@ApiModelProperty(notes = "融资币种")
private String financingCurrency;
@ApiModelProperty(notes = "融资金额")
private String financingAmount;
@ApiModelProperty(notes = "是否为额度贷款")
private String creditLimitLoan;
@ApiModelProperty(notes = "融资天数")
private String financingDays;
@ApiModelProperty(notes = "利率")
private String interestRate;
@ApiModelProperty(notes = "起息日")
private Date valueDate;
@ApiModelProperty(notes = "到期日")
private Date dueDate;
@ApiModelProperty(notes = "借款人结算账号")
private String borrSettlementAccount;
@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 getGuaranteeMethod() {
return guaranteeMethod;
}
public void setGuaranteeMethod(String guaranteeMethod) {
this.guaranteeMethod = guaranteeMethod == null ? null : guaranteeMethod.trim();
}
public String getFinancingCurrency() {
return financingCurrency;
}
public void setFinancingCurrency(String financingCurrency) {
this.financingCurrency = financingCurrency == null ? null : financingCurrency.trim();
}
public String getFinancingAmount() {
return financingAmount;
}
public void setFinancingAmount(String financingAmount) {
this.financingAmount = financingAmount == null ? null : financingAmount.trim();
}
public String getCreditLimitLoan() {
return creditLimitLoan;
}
public void setCreditLimitLoan(String creditLimitLoan) {
this.creditLimitLoan = creditLimitLoan == null ? null : creditLimitLoan.trim();
}
public String getFinancingDays() {
return financingDays;
}
public void setFinancingDays(String financingDays) {
this.financingDays = financingDays == null ? null : financingDays.trim();
}
public String getInterestRate() {
return interestRate;
}
public void setInterestRate(String interestRate) {
this.interestRate = interestRate == null ? null : interestRate.trim();
}
public Date getValueDate() {
return valueDate;
}
public void setValueDate(Date valueDate) {
this.valueDate = valueDate;
}
public Date getDueDate() {
return dueDate;
}
public void setDueDate(Date dueDate) {
this.dueDate = dueDate;
}
public String getBorrSettlementAccount() {
return borrSettlementAccount;
}
public void setBorrSettlementAccount(String borrSettlementAccount) {
this.borrSettlementAccount = borrSettlementAccount == null ? null : borrSettlementAccount.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;
}
}

@ -0,0 +1,474 @@
package com.sztzjy.bank.entity;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
/**
*
*
* @author whb
* opening_letter_credit
*/
public class OpeningLetterCredit {
@ApiModelProperty(notes = "ID")
private String id;
@ApiModelProperty(notes = "开证日")
private Date issueDate;
@ApiModelProperty(notes = "即期")
private String spot;
@ApiModelProperty(notes = "信用证编号")
private String docCreditNumber;
@ApiModelProperty(notes = "远期期限")
private String longTermTerm;
@ApiModelProperty(notes = "申请人名址")
private String appNameAndAddress;
@ApiModelProperty(notes = "信用证类型")
private String typeLetterCredit;
@ApiModelProperty(notes = "信用证支付方式")
private String letterCreditPaymentMethod;
@ApiModelProperty(notes = "受益人名址")
private String benNameAndAddress;
@ApiModelProperty(notes = "开证方式")
private String lssuanceMethod;
@ApiModelProperty(notes = "到期日")
private Date dueDate;
@ApiModelProperty(notes = "受益人所在地")
private String benLocation;
@ApiModelProperty(notes = "到期地点")
private String placeExpiry;
@ApiModelProperty(notes = "开证行代码")
private String lssuingBankCode;
@ApiModelProperty(notes = "交单日期")
private Date presentationDate;
@ApiModelProperty(notes = "开证行名址")
private String issBankNameAndAddress;
@ApiModelProperty(notes = "转运")
private String transport;
@ApiModelProperty(notes = "分批装运")
private String partialShipment;
@ApiModelProperty(notes = "是否为额度开证")
private String creditTheQuota;
@ApiModelProperty(notes = "客户结算账号")
private String customerSettlementAccount;
@ApiModelProperty(notes = "保证金账号")
private String marginAccount;
@ApiModelProperty(notes = "币种1")
private String currencyOne;
@ApiModelProperty(notes = "币种2")
private String currencyTwo;
@ApiModelProperty(notes = "金额1")
private String amountMoneyOne;
@ApiModelProperty(notes = "金额2")
private String amountMoneyTwo;
@ApiModelProperty(notes = "通知行代码")
private String notificationLineCode;
@ApiModelProperty(notes = "收费方式")
private String chargingMethod;
@ApiModelProperty(notes = "通知行名址")
private String notifyBankNameAndAddress;
@ApiModelProperty(notes = "收费币种")
private String chargingCurrency;
@ApiModelProperty(notes = "实收开证手续费")
private String creditHandlingFees;
@ApiModelProperty(notes = "信用证币别")
private String currencyLetterCredit;
@ApiModelProperty(notes = "电报费类型")
private String telegramFeeType;
@ApiModelProperty(notes = "信用证金额")
private String letterCreditAmount;
@ApiModelProperty(notes = "实收电报费金额")
private String actualTelegramFeeReceived;
@ApiModelProperty(notes = "手续费扣费账户")
private String serviceFeeDeductionAccount;
@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 Date getIssueDate() {
return issueDate;
}
public void setIssueDate(Date issueDate) {
this.issueDate = issueDate;
}
public String getSpot() {
return spot;
}
public void setSpot(String spot) {
this.spot = spot == null ? null : spot.trim();
}
public String getDocCreditNumber() {
return docCreditNumber;
}
public void setDocCreditNumber(String docCreditNumber) {
this.docCreditNumber = docCreditNumber == null ? null : docCreditNumber.trim();
}
public String getLongTermTerm() {
return longTermTerm;
}
public void setLongTermTerm(String longTermTerm) {
this.longTermTerm = longTermTerm == null ? null : longTermTerm.trim();
}
public String getAppNameAndAddress() {
return appNameAndAddress;
}
public void setAppNameAndAddress(String appNameAndAddress) {
this.appNameAndAddress = appNameAndAddress == null ? null : appNameAndAddress.trim();
}
public String getTypeLetterCredit() {
return typeLetterCredit;
}
public void setTypeLetterCredit(String typeLetterCredit) {
this.typeLetterCredit = typeLetterCredit == null ? null : typeLetterCredit.trim();
}
public String getLetterCreditPaymentMethod() {
return letterCreditPaymentMethod;
}
public void setLetterCreditPaymentMethod(String letterCreditPaymentMethod) {
this.letterCreditPaymentMethod = letterCreditPaymentMethod == null ? null : letterCreditPaymentMethod.trim();
}
public String getBenNameAndAddress() {
return benNameAndAddress;
}
public void setBenNameAndAddress(String benNameAndAddress) {
this.benNameAndAddress = benNameAndAddress == null ? null : benNameAndAddress.trim();
}
public String getLssuanceMethod() {
return lssuanceMethod;
}
public void setLssuanceMethod(String lssuanceMethod) {
this.lssuanceMethod = lssuanceMethod == null ? null : lssuanceMethod.trim();
}
public Date getDueDate() {
return dueDate;
}
public void setDueDate(Date dueDate) {
this.dueDate = dueDate;
}
public String getBenLocation() {
return benLocation;
}
public void setBenLocation(String benLocation) {
this.benLocation = benLocation == null ? null : benLocation.trim();
}
public String getPlaceExpiry() {
return placeExpiry;
}
public void setPlaceExpiry(String placeExpiry) {
this.placeExpiry = placeExpiry == null ? null : placeExpiry.trim();
}
public String getLssuingBankCode() {
return lssuingBankCode;
}
public void setLssuingBankCode(String lssuingBankCode) {
this.lssuingBankCode = lssuingBankCode == null ? null : lssuingBankCode.trim();
}
public Date getPresentationDate() {
return presentationDate;
}
public void setPresentationDate(Date presentationDate) {
this.presentationDate = presentationDate;
}
public String getIssBankNameAndAddress() {
return issBankNameAndAddress;
}
public void setIssBankNameAndAddress(String issBankNameAndAddress) {
this.issBankNameAndAddress = issBankNameAndAddress == null ? null : issBankNameAndAddress.trim();
}
public String getTransport() {
return transport;
}
public void setTransport(String transport) {
this.transport = transport == null ? null : transport.trim();
}
public String getPartialShipment() {
return partialShipment;
}
public void setPartialShipment(String partialShipment) {
this.partialShipment = partialShipment == null ? null : partialShipment.trim();
}
public String getCreditTheQuota() {
return creditTheQuota;
}
public void setCreditTheQuota(String creditTheQuota) {
this.creditTheQuota = creditTheQuota == null ? null : creditTheQuota.trim();
}
public String getCustomerSettlementAccount() {
return customerSettlementAccount;
}
public void setCustomerSettlementAccount(String customerSettlementAccount) {
this.customerSettlementAccount = customerSettlementAccount == null ? null : customerSettlementAccount.trim();
}
public String getMarginAccount() {
return marginAccount;
}
public void setMarginAccount(String marginAccount) {
this.marginAccount = marginAccount == null ? null : marginAccount.trim();
}
public String getCurrencyOne() {
return currencyOne;
}
public void setCurrencyOne(String currencyOne) {
this.currencyOne = currencyOne == null ? null : currencyOne.trim();
}
public String getCurrencyTwo() {
return currencyTwo;
}
public void setCurrencyTwo(String currencyTwo) {
this.currencyTwo = currencyTwo == null ? null : currencyTwo.trim();
}
public String getAmountMoneyOne() {
return amountMoneyOne;
}
public void setAmountMoneyOne(String amountMoneyOne) {
this.amountMoneyOne = amountMoneyOne == null ? null : amountMoneyOne.trim();
}
public String getAmountMoneyTwo() {
return amountMoneyTwo;
}
public void setAmountMoneyTwo(String amountMoneyTwo) {
this.amountMoneyTwo = amountMoneyTwo == null ? null : amountMoneyTwo.trim();
}
public String getNotificationLineCode() {
return notificationLineCode;
}
public void setNotificationLineCode(String notificationLineCode) {
this.notificationLineCode = notificationLineCode == null ? null : notificationLineCode.trim();
}
public String getChargingMethod() {
return chargingMethod;
}
public void setChargingMethod(String chargingMethod) {
this.chargingMethod = chargingMethod == null ? null : chargingMethod.trim();
}
public String getNotifyBankNameAndAddress() {
return notifyBankNameAndAddress;
}
public void setNotifyBankNameAndAddress(String notifyBankNameAndAddress) {
this.notifyBankNameAndAddress = notifyBankNameAndAddress == null ? null : notifyBankNameAndAddress.trim();
}
public String getChargingCurrency() {
return chargingCurrency;
}
public void setChargingCurrency(String chargingCurrency) {
this.chargingCurrency = chargingCurrency == null ? null : chargingCurrency.trim();
}
public String getCreditHandlingFees() {
return creditHandlingFees;
}
public void setCreditHandlingFees(String creditHandlingFees) {
this.creditHandlingFees = creditHandlingFees == null ? null : creditHandlingFees.trim();
}
public String getCurrencyLetterCredit() {
return currencyLetterCredit;
}
public void setCurrencyLetterCredit(String currencyLetterCredit) {
this.currencyLetterCredit = currencyLetterCredit == null ? null : currencyLetterCredit.trim();
}
public String getTelegramFeeType() {
return telegramFeeType;
}
public void setTelegramFeeType(String telegramFeeType) {
this.telegramFeeType = telegramFeeType == null ? null : telegramFeeType.trim();
}
public String getLetterCreditAmount() {
return letterCreditAmount;
}
public void setLetterCreditAmount(String letterCreditAmount) {
this.letterCreditAmount = letterCreditAmount == null ? null : letterCreditAmount.trim();
}
public String getActualTelegramFeeReceived() {
return actualTelegramFeeReceived;
}
public void setActualTelegramFeeReceived(String actualTelegramFeeReceived) {
this.actualTelegramFeeReceived = actualTelegramFeeReceived == null ? null : actualTelegramFeeReceived.trim();
}
public String getServiceFeeDeductionAccount() {
return serviceFeeDeductionAccount;
}
public void setServiceFeeDeductionAccount(String serviceFeeDeductionAccount) {
this.serviceFeeDeductionAccount = serviceFeeDeductionAccount == null ? null : serviceFeeDeductionAccount.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;
}
}

@ -18,11 +18,8 @@ public class CreditCardCollectionInfoDTO {
@ApiModelProperty(notes = "发卡银行")
private String issuingBank;
@ApiModelProperty(notes = "发卡时间")
private Date issuanceTime;
@ApiModelProperty(notes = "有效期")
private String periodOfValidity;
@ApiModelProperty(notes = "卡号")
private String cardNumber;
@ApiModelProperty(notes = "账户状态")
private String accountStatus;

@ -0,0 +1,31 @@
package com.sztzjy.bank.entity.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* @author tz
* @date 2025/3/12 11:43
*/
@Data
public class ImportBillAdvanceDTO {
@ApiModelProperty(notes = "保证方式")
private String guaranteeMethod;
@ApiModelProperty(notes = "融资币种")
private String financingCurrency;
@ApiModelProperty(notes = "融资金额")
private String financingAmount;
@ApiModelProperty(notes = "融资天数")
private String financingDays;
@ApiModelProperty(notes = "起息日")
private Date valueDate;
@ApiModelProperty(notes = "借款人结算账号")
private String borrSettlementAccount;
}

@ -0,0 +1,99 @@
package com.sztzjy.bank.entity.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
/**
* @author tz
* @date 2025/3/12 10:57
*/
@Data
public class OpeningLetterCreditDTO {
@ApiModelProperty(notes = "即期")
private String spot;
@ApiModelProperty(notes = "信用证编号")
private String docCreditNumber;
@ApiModelProperty(notes = "申请人名址")
private String appNameAndAddress;
@ApiModelProperty(notes = "信用证类型")
private String typeLetterCredit;
@ApiModelProperty(notes = "信用证支付方式")
private String letterCreditPaymentMethod;
@ApiModelProperty(notes = "受益人名址")
private String benNameAndAddress;
@ApiModelProperty(notes = "开证方式")
private String lssuanceMethod;
@ApiModelProperty(notes = "到期日")
private Date dueDate;
@ApiModelProperty(notes = "受益人所在地")
private String benLocation;
@ApiModelProperty(notes = "到期地点")
private String placeExpiry;
@ApiModelProperty(notes = "开证行代码")
private String lssuingBankCode;
@ApiModelProperty(notes = "交单日期")
private Date presentationDate;
@ApiModelProperty(notes = "转运")
private String transport;
@ApiModelProperty(notes = "分批装运")
private String partialShipment;
@ApiModelProperty(notes = "是否为额度开证")
private String creditTheQuota;
@ApiModelProperty(notes = "客户结算账号")
private String customerSettlementAccount;
@ApiModelProperty(notes = "保证金账号")
private String marginAccount;
@ApiModelProperty(notes = "币种1")
private String currencyOne;
@ApiModelProperty(notes = "币种2")
private String currencyTwo;
@ApiModelProperty(notes = "金额1")
private String amountMoneyOne;
@ApiModelProperty(notes = "金额2")
private String amountMoneyTwo;
@ApiModelProperty(notes = "通知行代码")
private String notificationLineCode;
@ApiModelProperty(notes = "收费方式")
private String chargingMethod;
@ApiModelProperty(notes = "通知行名址")
private String notifyBankNameAndAddress;
@ApiModelProperty(notes = "信用证币别")
private String currencyLetterCredit;
@ApiModelProperty(notes = "信用证金额")
private String letterCreditAmount;
@ApiModelProperty(notes = "手续费扣费账户")
private String serviceFeeDeductionAccount;
}

@ -0,0 +1,30 @@
package com.sztzjy.bank.mapper;
import com.sztzjy.bank.entity.ImportBillAdvance;
import com.sztzjy.bank.entity.ImportBillAdvanceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ImportBillAdvanceMapper {
long countByExample(ImportBillAdvanceExample example);
int deleteByExample(ImportBillAdvanceExample example);
int deleteByPrimaryKey(String id);
int insert(ImportBillAdvance record);
int insertSelective(ImportBillAdvance record);
List<ImportBillAdvance> selectByExample(ImportBillAdvanceExample example);
ImportBillAdvance selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") ImportBillAdvance record, @Param("example") ImportBillAdvanceExample example);
int updateByExample(@Param("record") ImportBillAdvance record, @Param("example") ImportBillAdvanceExample example);
int updateByPrimaryKeySelective(ImportBillAdvance record);
int updateByPrimaryKey(ImportBillAdvance record);
}

@ -0,0 +1,30 @@
package com.sztzjy.bank.mapper;
import com.sztzjy.bank.entity.OpeningLetterCredit;
import com.sztzjy.bank.entity.OpeningLetterCreditExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface OpeningLetterCreditMapper {
long countByExample(OpeningLetterCreditExample example);
int deleteByExample(OpeningLetterCreditExample example);
int deleteByPrimaryKey(String id);
int insert(OpeningLetterCredit record);
int insertSelective(OpeningLetterCredit record);
List<OpeningLetterCredit> selectByExample(OpeningLetterCreditExample example);
OpeningLetterCredit selectByPrimaryKey(String id);
int updateByExampleSelective(@Param("record") OpeningLetterCredit record, @Param("example") OpeningLetterCreditExample example);
int updateByExample(@Param("record") OpeningLetterCredit record, @Param("example") OpeningLetterCreditExample example);
int updateByPrimaryKeySelective(OpeningLetterCredit record);
int updateByPrimaryKey(OpeningLetterCredit record);
}

@ -1,6 +1,8 @@
package com.sztzjy.bank.service;
import com.sztzjy.bank.entity.ApplicationOpeningLetterCredit;
import com.sztzjy.bank.entity.ImportBillAdvance;
import com.sztzjy.bank.entity.OpeningLetterCredit;
import com.sztzjy.bank.entity.TradeContract;
import com.sztzjy.bank.entity.dto.ApplicationForOpeningDTO;
import com.sztzjy.bank.entity.dto.OutwardRemittanceDTO;
@ -24,4 +26,12 @@ public interface ImportletterService {
ApplicationForOpeningDTO getApplicationForOpening(String userId, Integer number, String module);
void submitIssuanceReview(String userId, Integer number, Integer type,String notes);
Integer submitOpeningLetterCredit(OpeningLetterCredit openingLetterCredit);
OpeningLetterCredit getOpeningLetterCredit(String userId, Integer number, String module);
Integer submitImportBillAdvance(ImportBillAdvance importBillAdvance);
}

@ -4,14 +4,8 @@ import cn.hutool.core.util.IdUtil;
import com.alibaba.fastjson.JSON;
import com.sztzjy.bank.config.exception.handler.ServiceException;
import com.sztzjy.bank.entity.*;
import com.sztzjy.bank.entity.dto.ApplicationForOpeningDTO;
import com.sztzjy.bank.entity.dto.ApplicationOpeningLetterCreditDTO;
import com.sztzjy.bank.entity.dto.PostLoanInvestigationDTO;
import com.sztzjy.bank.entity.dto.TradeContractDTO;
import com.sztzjy.bank.mapper.ApplicationOpeningLetterCreditMapper;
import com.sztzjy.bank.mapper.CaseAnswerInfoMapper;
import com.sztzjy.bank.mapper.CaseInfoMapper;
import com.sztzjy.bank.mapper.TradeContractMapper;
import com.sztzjy.bank.entity.dto.*;
import com.sztzjy.bank.mapper.*;
import com.sztzjy.bank.service.ImportletterService;
import com.sztzjy.bank.service.PersonalLoanService;
import com.sztzjy.bank.util.ConvertUtil;
@ -54,6 +48,10 @@ public class ImportletterServiceImpl implements ImportletterService {
ConvertUtil convertUtil;
@Autowired
ApplicationOpeningLetterCreditMapper openingLetterCreditMapper;
@Autowired
OpeningLetterCreditMapper letterCreditMapper;
@Autowired
ImportBillAdvanceMapper importBillAdvanceMapper;
//进口信用证业务-签署合同-提交保存
@ -440,6 +438,142 @@ public class ImportletterServiceImpl implements ImportletterService {
}
}
@Override
public Integer submitOpeningLetterCredit(OpeningLetterCredit openingLetterCredit) {
OpeningLetterCreditExample openingLetterCreditExample=new OpeningLetterCreditExample();
openingLetterCreditExample.createCriteria().andUserIdEqualTo(openingLetterCredit.getUserId())
.andNumberEqualTo(openingLetterCredit.getNumber());
List<OpeningLetterCredit> openingLetterCredits = letterCreditMapper.selectByExample(openingLetterCreditExample);
if(CollectionUtils.isEmpty(openingLetterCredits)){ //添加数据
openingLetterCredit.setId(IdUtil.simpleUUID());
openingLetterCredit.setCreateTime(new Date());
//检验是提交还是保存
if(openingLetterCredit.getSubmitStatus()==1){ //提交则计算错误次数
//判断用户是否完成上一个流程,并更新操作步骤序号
if(!personalLoanService.ProcessJudgment(4,openingLetterCredit.getUserId(),"进口信用证业务")){
throw new ServiceException(HttpStatus.ACCEPTED,"请先完成上一流程");
}
//计算错误次数
openingLetterCredit = countByOpeningLetterCredit(openingLetterCredit);
}
//否则保存不计算,直接添加
return letterCreditMapper.insertSelective(openingLetterCredit);
}else { //已有操作记录
OpeningLetterCredit credit = openingLetterCredits.get(0);
//取出id以防被覆盖
String id = credit.getId();
//判断是否已经提交,已提交保存记录不计分,未提交保存记录并计分
if(credit.getSubmitStatus()!=1){
//检验本次是提交还是保存
if(openingLetterCredit.getSubmitStatus()==1){ //提交则计算错误次数
//判断用户是否完成上一个流程,并更新操作步骤序号
if(!personalLoanService.ProcessJudgment(4,openingLetterCredit.getUserId(),"进口信用证业务")){
throw new ServiceException(HttpStatus.ACCEPTED,"请先完成上一流程");
}
//计算错误次数
openingLetterCredit = countByOpeningLetterCredit(openingLetterCredit);
}
}
openingLetterCredit.setId(id);
openingLetterCredit.setUpdateTime(new Date());
return letterCreditMapper.updateByPrimaryKeySelective(openingLetterCredit);
}
}
@Override
public OpeningLetterCredit getOpeningLetterCredit(String userId, Integer number, String module) {
OpeningLetterCreditExample openingLetterCreditExample=new OpeningLetterCreditExample();
openingLetterCreditExample.createCriteria().andUserIdEqualTo(userId)
.andNumberEqualTo(number);
List<OpeningLetterCredit> openingLetterCredits = letterCreditMapper.selectByExample(openingLetterCreditExample);
if(CollectionUtils.isEmpty(openingLetterCredits)){
return openingLetterCredits.get(0);
}
return null;
}
@Override
public Integer submitImportBillAdvance(ImportBillAdvance importBillAdvance) {
ImportBillAdvanceExample importBillAdvanceExample=new ImportBillAdvanceExample();
importBillAdvanceExample.createCriteria().andUserIdEqualTo(importBillAdvance.getUserId())
.andNumberEqualTo(importBillAdvance.getNumber());
List<ImportBillAdvance> importBillAdvances = importBillAdvanceMapper.selectByExample(importBillAdvanceExample);
if(CollectionUtils.isEmpty(importBillAdvances)){ //添加数据
importBillAdvance.setId(IdUtil.simpleUUID());
importBillAdvance.setCreateTime(new Date());
//检验是提交还是保存
if(importBillAdvance.getSubmitStatus()==1){ //提交则计算错误次数
//判断用户是否完成上一个流程,并更新操作步骤序号
if(!personalLoanService.ProcessJudgment(5,importBillAdvance.getUserId(),"进口信用证业务")){
throw new ServiceException(HttpStatus.ACCEPTED,"请先完成上一流程");
}
//计算错误次数
importBillAdvance = countByImportBillAdvance(importBillAdvance);
}
//否则保存不计算,直接添加
return importBillAdvanceMapper.insertSelective(importBillAdvance);
}else { //已有操作记录
ImportBillAdvance billAdvance = importBillAdvances.get(0);
//取出id以防被覆盖
String id = billAdvance.getId();
//判断是否已经提交,已提交保存记录不计分,未提交保存记录并计分
if(billAdvance.getSubmitStatus()!=1){
//检验本次是提交还是保存
if(importBillAdvance.getSubmitStatus()==1){ //提交则计算错误次数
//判断用户是否完成上一个流程,并更新操作步骤序号
if(!personalLoanService.ProcessJudgment(5,importBillAdvance.getUserId(),"进口信用证业务")){
throw new ServiceException(HttpStatus.ACCEPTED,"请先完成上一流程");
}
//计算错误次数
importBillAdvance = countByImportBillAdvance(importBillAdvance);
}
}
importBillAdvance.setId(id);
importBillAdvance.setUpdateTime(new Date());
return importBillAdvanceMapper.updateByPrimaryKeySelective(importBillAdvance);
}
}
//开证申请计算
private ApplicationOpeningLetterCredit countByPostLoanInvestigation(ApplicationOpeningLetterCredit openingLetterCredit,int i) {
@ -481,4 +615,89 @@ public class ImportletterServiceImpl implements ImportletterService {
}
}
//开立信用证计算
private OpeningLetterCredit countByOpeningLetterCredit(OpeningLetterCredit openingLetterCredit) {
String answer = redisUtil.get("bank" + "-进口信用证业务" + "-开立信用证");
if (answer == null) {
CaseInfoExample caseInfoExample = new CaseInfoExample();
caseInfoExample.createCriteria().andLargeModuleEqualTo("进口信用证业务").andModuleEqualTo("开立信用证")
.andNumberEqualTo(openingLetterCredit.getNumber());
List<CaseInfo> caseInfoList = caseInfoMapper.selectByExampleWithBLOBs(caseInfoExample);
if (!CollectionUtils.isEmpty(caseInfoList)) {
CaseInfo caseInfo = caseInfoList.get(0);
CaseAnswerInfoExample caseAnswerInfoExample = new CaseAnswerInfoExample();
caseAnswerInfoExample.createCriteria().andCaseIdEqualTo(caseInfo.getCaseId());
List<CaseAnswerInfo> answerInfoList = caseAnswerInfoMapper.selectByExampleWithBLOBs(caseAnswerInfoExample);
if (!CollectionUtils.isEmpty(answerInfoList)) {
String info = answerInfoList.get(0).getAnswer();
redisUtil.set("bank" + "-进口信用证业务" + "-开立信用证",info,3600);
answer=redisUtil.get("bank" + "-进口信用证业务" + "-开立信用证");
}
}
}
// 解析 JSON 字符串
OpeningLetterCredit letterCredit = JSON.parseObject(answer, OpeningLetterCredit.class);
OpeningLetterCreditDTO answerDTO= convertUtil.entityToDTO(letterCredit, OpeningLetterCreditDTO.class);
OpeningLetterCreditDTO openingLetterCreditDTO = convertUtil.entityToDTO(openingLetterCredit, OpeningLetterCreditDTO.class);
try {
int update = ObjectComparatorUtil.countDifferences(answerDTO, openingLetterCreditDTO);
//错误次数
openingLetterCredit.setErrorNumber(update);
return openingLetterCredit;
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}
//进口押汇计算
private ImportBillAdvance countByImportBillAdvance(ImportBillAdvance importBillAdvance) {
String answer = redisUtil.get("bank" + "-进口信用证业务" + "-进口押汇");
if (answer == null) {
CaseInfoExample caseInfoExample = new CaseInfoExample();
caseInfoExample.createCriteria().andLargeModuleEqualTo("进口信用证业务").andModuleEqualTo("进口押汇")
.andNumberEqualTo(importBillAdvance.getNumber());
List<CaseInfo> caseInfoList = caseInfoMapper.selectByExampleWithBLOBs(caseInfoExample);
if (!CollectionUtils.isEmpty(caseInfoList)) {
CaseInfo caseInfo = caseInfoList.get(0);
CaseAnswerInfoExample caseAnswerInfoExample = new CaseAnswerInfoExample();
caseAnswerInfoExample.createCriteria().andCaseIdEqualTo(caseInfo.getCaseId());
List<CaseAnswerInfo> answerInfoList = caseAnswerInfoMapper.selectByExampleWithBLOBs(caseAnswerInfoExample);
if (!CollectionUtils.isEmpty(answerInfoList)) {
String info = answerInfoList.get(0).getAnswer();
redisUtil.set("bank" + "-进口信用证业务" + "-进口押汇",info,3600);
answer=redisUtil.get("bank" + "-进口信用证业务" + "-进口押汇");
}
}
}
// 解析 JSON 字符串
ImportBillAdvance letterCredit = JSON.parseObject(answer, ImportBillAdvance.class);
ImportBillAdvanceDTO answerDTO= convertUtil.entityToDTO(letterCredit, ImportBillAdvanceDTO.class);
ImportBillAdvanceDTO importBillAdvanceDTO = convertUtil.entityToDTO(importBillAdvance, ImportBillAdvanceDTO.class);
try {
int update = ObjectComparatorUtil.countDifferences(answerDTO, importBillAdvanceDTO);
//错误次数
importBillAdvance.setErrorNumber(update);
return importBillAdvance;
} catch (IllegalAccessException e) {
throw new RuntimeException(e);
}
}
}

@ -303,73 +303,74 @@ public class PersonalLoanServiceImpl implements PersonalLoanService {
//只需判断一项是否有记录
if(CollectionUtils.isEmpty(cardCollectionInfos)){ //添加数据
//信用卡采集集合
if(CollectionUtils.isEmpty(creditDataDTO.getCardCollectionInfos())){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
for (CreditCardCollectionInfo cardCollectionInfo:creditDataDTO.getCardCollectionInfos()) {
cardCollectionInfo.setId(IdUtil.simpleUUID());
cardCollectionInfo.setCreateTime(new Date());
cardCollectionInfo.setUserId(creditDataDTO.getUserId());
cardCollectionInfo.setNumber(creditDataDTO.getNumber());
}
}
//购房贷款信息采集集合
if(CollectionUtils.isEmpty(creditDataDTO.getLoanInformation())){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
for (HousingLoanInformation loanInformation:creditDataDTO.getLoanInformation()) {
loanInformation.setId(IdUtil.simpleUUID());
loanInformation.setCreateTime(new Date());
loanInformation.setUserId(creditDataDTO.getUserId());
loanInformation.setNumber(creditDataDTO.getNumber());
//检验是提交还是保存
if(creditDataDTO.getStatus()==1){ //提交则计算错误次数
//信用卡采集集合
if(CollectionUtils.isEmpty(creditDataDTO.getCardCollectionInfos())){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
for (CreditCardCollectionInfo cardCollectionInfo:creditDataDTO.getCardCollectionInfos()) {
cardCollectionInfo.setId(IdUtil.simpleUUID());
cardCollectionInfo.setCreateTime(new Date());
cardCollectionInfo.setUserId(creditDataDTO.getUserId());
cardCollectionInfo.setNumber(creditDataDTO.getNumber());
}
}
}
//担保情况采集
if(creditDataDTO.getSituationInfo()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getSituationInfo().setId(IdUtil.simpleUUID());
creditDataDTO.getSituationInfo().setCreateTime(new Date());
creditDataDTO.getSituationInfo().setUserId(creditDataDTO.getUserId());
creditDataDTO.getSituationInfo().setNumber(creditDataDTO.getNumber());
}
//购房贷款信息采集集合
if(CollectionUtils.isEmpty(creditDataDTO.getLoanInformation())){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
for (HousingLoanInformation loanInformation:creditDataDTO.getLoanInformation()) {
loanInformation.setId(IdUtil.simpleUUID());
loanInformation.setCreateTime(new Date());
loanInformation.setUserId(creditDataDTO.getUserId());
loanInformation.setNumber(creditDataDTO.getNumber());
}
}
//欠税记录采集
if(creditDataDTO.getTaxArrearsRecords()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getTaxArrearsRecords().setId(IdUtil.simpleUUID());
creditDataDTO.getTaxArrearsRecords().setCreateTime(new Date());
creditDataDTO.getTaxArrearsRecords().setUserId(creditDataDTO.getUserId());
creditDataDTO.getTaxArrearsRecords().setNumber(creditDataDTO.getNumber());
}
//担保情况采集
if(creditDataDTO.getSituationInfo()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getSituationInfo().setId(IdUtil.simpleUUID());
creditDataDTO.getSituationInfo().setCreateTime(new Date());
creditDataDTO.getSituationInfo().setUserId(creditDataDTO.getUserId());
creditDataDTO.getSituationInfo().setNumber(creditDataDTO.getNumber());
}
//民事判决信息采集
if(creditDataDTO.getJudgmentInformation()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getJudgmentInformation().setId(IdUtil.simpleUUID());
creditDataDTO.getJudgmentInformation().setCreateTime(new Date());
creditDataDTO.getJudgmentInformation().setUserId(creditDataDTO.getUserId());
creditDataDTO.getJudgmentInformation().setNumber(creditDataDTO.getNumber());
}
//欠税记录采集
if(creditDataDTO.getTaxArrearsRecords()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getTaxArrearsRecords().setId(IdUtil.simpleUUID());
creditDataDTO.getTaxArrearsRecords().setCreateTime(new Date());
creditDataDTO.getTaxArrearsRecords().setUserId(creditDataDTO.getUserId());
creditDataDTO.getTaxArrearsRecords().setNumber(creditDataDTO.getNumber());
}
//民事判决信息采集
if(creditDataDTO.getJudgmentInformation()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getJudgmentInformation().setId(IdUtil.simpleUUID());
creditDataDTO.getJudgmentInformation().setCreateTime(new Date());
creditDataDTO.getJudgmentInformation().setUserId(creditDataDTO.getUserId());
creditDataDTO.getJudgmentInformation().setNumber(creditDataDTO.getNumber());
}
//行政处罚信息采集
if(creditDataDTO.getPenaltyInformation()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getPenaltyInformation().setId(IdUtil.simpleUUID());
creditDataDTO.getPenaltyInformation().setCreateTime(new Date());
creditDataDTO.getPenaltyInformation().setUserId(creditDataDTO.getUserId());
creditDataDTO.getPenaltyInformation().setNumber(creditDataDTO.getNumber());
}
//检验是提交还是保存
if(creditDataDTO.getStatus()==1){ //提交则计算错误次数
//行政处罚信息采集
if(creditDataDTO.getPenaltyInformation()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getPenaltyInformation().setId(IdUtil.simpleUUID());
creditDataDTO.getPenaltyInformation().setCreateTime(new Date());
creditDataDTO.getPenaltyInformation().setUserId(creditDataDTO.getUserId());
creditDataDTO.getPenaltyInformation().setNumber(creditDataDTO.getNumber());
}
//判断用户是否完成上一个流程,并更新操作步骤序号
if(!ProcessJudgment(3,creditDataDTO.getUserId(),"个人贷款业务")){
@ -428,6 +429,70 @@ public class PersonalLoanServiceImpl implements PersonalLoanService {
//检验本次是提交还是保存
if(creditDataDTO.getStatus()==1){ //提交则计算错误次数
//信用卡采集集合
if(CollectionUtils.isEmpty(creditDataDTO.getCardCollectionInfos())){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
for (CreditCardCollectionInfo cardCollectionInfo:creditDataDTO.getCardCollectionInfos()) {
cardCollectionInfo.setId(IdUtil.simpleUUID());
cardCollectionInfo.setCreateTime(new Date());
cardCollectionInfo.setUserId(creditDataDTO.getUserId());
cardCollectionInfo.setNumber(creditDataDTO.getNumber());
}
}
//购房贷款信息采集集合
if(CollectionUtils.isEmpty(creditDataDTO.getLoanInformation())){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
for (HousingLoanInformation loanInformation:creditDataDTO.getLoanInformation()) {
loanInformation.setId(IdUtil.simpleUUID());
loanInformation.setCreateTime(new Date());
loanInformation.setUserId(creditDataDTO.getUserId());
loanInformation.setNumber(creditDataDTO.getNumber());
}
}
//担保情况采集
if(creditDataDTO.getSituationInfo()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getSituationInfo().setId(IdUtil.simpleUUID());
creditDataDTO.getSituationInfo().setCreateTime(new Date());
creditDataDTO.getSituationInfo().setUserId(creditDataDTO.getUserId());
creditDataDTO.getSituationInfo().setNumber(creditDataDTO.getNumber());
}
//欠税记录采集
if(creditDataDTO.getTaxArrearsRecords()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getTaxArrearsRecords().setId(IdUtil.simpleUUID());
creditDataDTO.getTaxArrearsRecords().setCreateTime(new Date());
creditDataDTO.getTaxArrearsRecords().setUserId(creditDataDTO.getUserId());
creditDataDTO.getTaxArrearsRecords().setNumber(creditDataDTO.getNumber());
}
//民事判决信息采集
if(creditDataDTO.getJudgmentInformation()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getJudgmentInformation().setId(IdUtil.simpleUUID());
creditDataDTO.getJudgmentInformation().setCreateTime(new Date());
creditDataDTO.getJudgmentInformation().setUserId(creditDataDTO.getUserId());
creditDataDTO.getJudgmentInformation().setNumber(creditDataDTO.getNumber());
}
//行政处罚信息采集
if(creditDataDTO.getPenaltyInformation()==null){
throw new ServiceException(HttpStatus.ACCEPTED,"必选项未填写");
}else {
creditDataDTO.getPenaltyInformation().setId(IdUtil.simpleUUID());
creditDataDTO.getPenaltyInformation().setCreateTime(new Date());
creditDataDTO.getPenaltyInformation().setUserId(creditDataDTO.getUserId());
creditDataDTO.getPenaltyInformation().setNumber(creditDataDTO.getNumber());
}
//判断用户是否完成上一个流程,并更新操作步骤序号
if(!ProcessJudgment(3,creditDataDTO.getUserId(),"个人贷款业务")){

@ -20,6 +20,8 @@
<result column="submit_status" jdbcType="INTEGER" property="submitStatus" />
<result column="error_number" jdbcType="INTEGER" property="errorNumber" />
<result column="number" jdbcType="INTEGER" property="number" />
<result column="card_number" jdbcType="VARCHAR" property="cardNumber" />
<result column="application_time" jdbcType="TIMESTAMP" property="applicationTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
@ -82,7 +84,8 @@
<sql id="Base_Column_List">
id, bank_card_type, Issuing_bank, Issuance_time, period_of_validity, account_status,
currency, credit_limit, used_credit_limit, five_years_slippage_months, more_than_sixty_days_slippage,
user_id, create_time, update_time, save_status, submit_status, error_number, number
user_id, create_time, update_time, save_status, submit_status, error_number, number,
card_number, application_time
</sql>
<select id="selectByExample" parameterType="com.sztzjy.bank.entity.CreditCardCollectionInfoExample" resultMap="BaseResultMap">
select
@ -121,14 +124,16 @@
five_years_slippage_months, more_than_sixty_days_slippage,
user_id, create_time, update_time,
save_status, submit_status, error_number,
number)
number, card_number, application_time
)
values (#{id,jdbcType=VARCHAR}, #{bankCardType,jdbcType=VARCHAR}, #{issuingBank,jdbcType=VARCHAR},
#{issuanceTime,jdbcType=TIMESTAMP}, #{periodOfValidity,jdbcType=VARCHAR}, #{accountStatus,jdbcType=VARCHAR},
#{currency,jdbcType=VARCHAR}, #{creditLimit,jdbcType=VARCHAR}, #{usedCreditLimit,jdbcType=VARCHAR},
#{fiveYearsSlippageMonths,jdbcType=INTEGER}, #{moreThanSixtyDaysSlippage,jdbcType=INTEGER},
#{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{saveStatus,jdbcType=INTEGER}, #{submitStatus,jdbcType=INTEGER}, #{errorNumber,jdbcType=INTEGER},
#{number,jdbcType=INTEGER})
#{number,jdbcType=INTEGER}, #{cardNumber,jdbcType=VARCHAR}, #{applicationTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.bank.entity.CreditCardCollectionInfo">
insert into credit_card_collection_info
@ -187,6 +192,12 @@
<if test="number != null">
number,
</if>
<if test="cardNumber != null">
card_number,
</if>
<if test="applicationTime != null">
application_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@ -243,6 +254,12 @@
<if test="number != null">
#{number,jdbcType=INTEGER},
</if>
<if test="cardNumber != null">
#{cardNumber,jdbcType=VARCHAR},
</if>
<if test="applicationTime != null">
#{applicationTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.bank.entity.CreditCardCollectionInfoExample" resultType="java.lang.Long">
@ -308,6 +325,12 @@
<if test="record.number != null">
number = #{record.number,jdbcType=INTEGER},
</if>
<if test="record.cardNumber != null">
card_number = #{record.cardNumber,jdbcType=VARCHAR},
</if>
<if test="record.applicationTime != null">
application_time = #{record.applicationTime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
@ -332,7 +355,9 @@
save_status = #{record.saveStatus,jdbcType=INTEGER},
submit_status = #{record.submitStatus,jdbcType=INTEGER},
error_number = #{record.errorNumber,jdbcType=INTEGER},
number = #{record.number,jdbcType=INTEGER}
number = #{record.number,jdbcType=INTEGER},
card_number = #{record.cardNumber,jdbcType=VARCHAR},
application_time = #{record.applicationTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
@ -391,6 +416,12 @@
<if test="number != null">
number = #{number,jdbcType=INTEGER},
</if>
<if test="cardNumber != null">
card_number = #{cardNumber,jdbcType=VARCHAR},
</if>
<if test="applicationTime != null">
application_time = #{applicationTime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
@ -412,7 +443,9 @@
save_status = #{saveStatus,jdbcType=INTEGER},
submit_status = #{submitStatus,jdbcType=INTEGER},
error_number = #{errorNumber,jdbcType=INTEGER},
number = #{number,jdbcType=INTEGER}
number = #{number,jdbcType=INTEGER},
card_number = #{cardNumber,jdbcType=VARCHAR},
application_time = #{applicationTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
</update>
</mapper>

@ -0,0 +1,401 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sztzjy.bank.mapper.ImportBillAdvanceMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.bank.entity.ImportBillAdvance">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="guarantee_method" jdbcType="VARCHAR" property="guaranteeMethod" />
<result column="financing_currency" jdbcType="VARCHAR" property="financingCurrency" />
<result column="financing_amount" jdbcType="VARCHAR" property="financingAmount" />
<result column="credit_limit_loan" jdbcType="VARCHAR" property="creditLimitLoan" />
<result column="financing_days" jdbcType="VARCHAR" property="financingDays" />
<result column="interest_rate" jdbcType="VARCHAR" property="interestRate" />
<result column="value_date" jdbcType="DATE" property="valueDate" />
<result column="due_date" jdbcType="DATE" property="dueDate" />
<result column="borr_settlement_account" jdbcType="VARCHAR" property="borrSettlementAccount" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="save_status" jdbcType="INTEGER" property="saveStatus" />
<result column="submit_status" jdbcType="INTEGER" property="submitStatus" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="error_number" jdbcType="INTEGER" property="errorNumber" />
<result column="number" jdbcType="INTEGER" property="number" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, guarantee_method, financing_currency, financing_amount, credit_limit_loan, financing_days,
interest_rate, value_date, due_date, borr_settlement_account, create_time, update_time,
save_status, submit_status, user_id, error_number, number
</sql>
<select id="selectByExample" parameterType="com.sztzjy.bank.entity.ImportBillAdvanceExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from import_bill_advance
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from import_bill_advance
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from import_bill_advance
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.bank.entity.ImportBillAdvanceExample">
delete from import_bill_advance
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.bank.entity.ImportBillAdvance">
insert into import_bill_advance (id, guarantee_method, financing_currency,
financing_amount, credit_limit_loan, financing_days,
interest_rate, value_date, due_date,
borr_settlement_account, create_time, update_time,
save_status, submit_status, user_id,
error_number, number)
values (#{id,jdbcType=VARCHAR}, #{guaranteeMethod,jdbcType=VARCHAR}, #{financingCurrency,jdbcType=VARCHAR},
#{financingAmount,jdbcType=VARCHAR}, #{creditLimitLoan,jdbcType=VARCHAR}, #{financingDays,jdbcType=VARCHAR},
#{interestRate,jdbcType=VARCHAR}, #{valueDate,jdbcType=DATE}, #{dueDate,jdbcType=DATE},
#{borrSettlementAccount,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{saveStatus,jdbcType=INTEGER}, #{submitStatus,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR},
#{errorNumber,jdbcType=INTEGER}, #{number,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.bank.entity.ImportBillAdvance">
insert into import_bill_advance
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="guaranteeMethod != null">
guarantee_method,
</if>
<if test="financingCurrency != null">
financing_currency,
</if>
<if test="financingAmount != null">
financing_amount,
</if>
<if test="creditLimitLoan != null">
credit_limit_loan,
</if>
<if test="financingDays != null">
financing_days,
</if>
<if test="interestRate != null">
interest_rate,
</if>
<if test="valueDate != null">
value_date,
</if>
<if test="dueDate != null">
due_date,
</if>
<if test="borrSettlementAccount != null">
borr_settlement_account,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="saveStatus != null">
save_status,
</if>
<if test="submitStatus != null">
submit_status,
</if>
<if test="userId != null">
user_id,
</if>
<if test="errorNumber != null">
error_number,
</if>
<if test="number != null">
number,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="guaranteeMethod != null">
#{guaranteeMethod,jdbcType=VARCHAR},
</if>
<if test="financingCurrency != null">
#{financingCurrency,jdbcType=VARCHAR},
</if>
<if test="financingAmount != null">
#{financingAmount,jdbcType=VARCHAR},
</if>
<if test="creditLimitLoan != null">
#{creditLimitLoan,jdbcType=VARCHAR},
</if>
<if test="financingDays != null">
#{financingDays,jdbcType=VARCHAR},
</if>
<if test="interestRate != null">
#{interestRate,jdbcType=VARCHAR},
</if>
<if test="valueDate != null">
#{valueDate,jdbcType=DATE},
</if>
<if test="dueDate != null">
#{dueDate,jdbcType=DATE},
</if>
<if test="borrSettlementAccount != null">
#{borrSettlementAccount,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="saveStatus != null">
#{saveStatus,jdbcType=INTEGER},
</if>
<if test="submitStatus != null">
#{submitStatus,jdbcType=INTEGER},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="errorNumber != null">
#{errorNumber,jdbcType=INTEGER},
</if>
<if test="number != null">
#{number,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.bank.entity.ImportBillAdvanceExample" resultType="java.lang.Long">
select count(*) from import_bill_advance
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update import_bill_advance
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.guaranteeMethod != null">
guarantee_method = #{record.guaranteeMethod,jdbcType=VARCHAR},
</if>
<if test="record.financingCurrency != null">
financing_currency = #{record.financingCurrency,jdbcType=VARCHAR},
</if>
<if test="record.financingAmount != null">
financing_amount = #{record.financingAmount,jdbcType=VARCHAR},
</if>
<if test="record.creditLimitLoan != null">
credit_limit_loan = #{record.creditLimitLoan,jdbcType=VARCHAR},
</if>
<if test="record.financingDays != null">
financing_days = #{record.financingDays,jdbcType=VARCHAR},
</if>
<if test="record.interestRate != null">
interest_rate = #{record.interestRate,jdbcType=VARCHAR},
</if>
<if test="record.valueDate != null">
value_date = #{record.valueDate,jdbcType=DATE},
</if>
<if test="record.dueDate != null">
due_date = #{record.dueDate,jdbcType=DATE},
</if>
<if test="record.borrSettlementAccount != null">
borr_settlement_account = #{record.borrSettlementAccount,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.saveStatus != null">
save_status = #{record.saveStatus,jdbcType=INTEGER},
</if>
<if test="record.submitStatus != null">
submit_status = #{record.submitStatus,jdbcType=INTEGER},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.errorNumber != null">
error_number = #{record.errorNumber,jdbcType=INTEGER},
</if>
<if test="record.number != null">
number = #{record.number,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update import_bill_advance
set id = #{record.id,jdbcType=VARCHAR},
guarantee_method = #{record.guaranteeMethod,jdbcType=VARCHAR},
financing_currency = #{record.financingCurrency,jdbcType=VARCHAR},
financing_amount = #{record.financingAmount,jdbcType=VARCHAR},
credit_limit_loan = #{record.creditLimitLoan,jdbcType=VARCHAR},
financing_days = #{record.financingDays,jdbcType=VARCHAR},
interest_rate = #{record.interestRate,jdbcType=VARCHAR},
value_date = #{record.valueDate,jdbcType=DATE},
due_date = #{record.dueDate,jdbcType=DATE},
borr_settlement_account = #{record.borrSettlementAccount,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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.bank.entity.ImportBillAdvance">
update import_bill_advance
<set>
<if test="guaranteeMethod != null">
guarantee_method = #{guaranteeMethod,jdbcType=VARCHAR},
</if>
<if test="financingCurrency != null">
financing_currency = #{financingCurrency,jdbcType=VARCHAR},
</if>
<if test="financingAmount != null">
financing_amount = #{financingAmount,jdbcType=VARCHAR},
</if>
<if test="creditLimitLoan != null">
credit_limit_loan = #{creditLimitLoan,jdbcType=VARCHAR},
</if>
<if test="financingDays != null">
financing_days = #{financingDays,jdbcType=VARCHAR},
</if>
<if test="interestRate != null">
interest_rate = #{interestRate,jdbcType=VARCHAR},
</if>
<if test="valueDate != null">
value_date = #{valueDate,jdbcType=DATE},
</if>
<if test="dueDate != null">
due_date = #{dueDate,jdbcType=DATE},
</if>
<if test="borrSettlementAccount != null">
borr_settlement_account = #{borrSettlementAccount,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="saveStatus != null">
save_status = #{saveStatus,jdbcType=INTEGER},
</if>
<if test="submitStatus != null">
submit_status = #{submitStatus,jdbcType=INTEGER},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="errorNumber != null">
error_number = #{errorNumber,jdbcType=INTEGER},
</if>
<if test="number != null">
number = #{number,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.bank.entity.ImportBillAdvance">
update import_bill_advance
set guarantee_method = #{guaranteeMethod,jdbcType=VARCHAR},
financing_currency = #{financingCurrency,jdbcType=VARCHAR},
financing_amount = #{financingAmount,jdbcType=VARCHAR},
credit_limit_loan = #{creditLimitLoan,jdbcType=VARCHAR},
financing_days = #{financingDays,jdbcType=VARCHAR},
interest_rate = #{interestRate,jdbcType=VARCHAR},
value_date = #{valueDate,jdbcType=DATE},
due_date = #{dueDate,jdbcType=DATE},
borr_settlement_account = #{borrSettlementAccount,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>
</mapper>

@ -0,0 +1,802 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sztzjy.bank.mapper.OpeningLetterCreditMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.bank.entity.OpeningLetterCredit">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="issue_date" jdbcType="DATE" property="issueDate" />
<result column="spot" jdbcType="VARCHAR" property="spot" />
<result column="doc_credit_number" jdbcType="VARCHAR" property="docCreditNumber" />
<result column="long_term_term" jdbcType="VARCHAR" property="longTermTerm" />
<result column="app_name_and_address" jdbcType="VARCHAR" property="appNameAndAddress" />
<result column="type_letter_credit" jdbcType="VARCHAR" property="typeLetterCredit" />
<result column="letter_credit_payment_method" jdbcType="VARCHAR" property="letterCreditPaymentMethod" />
<result column="ben_name_and_address" jdbcType="VARCHAR" property="benNameAndAddress" />
<result column="lssuance_method" jdbcType="VARCHAR" property="lssuanceMethod" />
<result column="due_date" jdbcType="DATE" property="dueDate" />
<result column="ben_location" jdbcType="VARCHAR" property="benLocation" />
<result column="place_expiry" jdbcType="VARCHAR" property="placeExpiry" />
<result column="lssuing_bank_code" jdbcType="VARCHAR" property="lssuingBankCode" />
<result column="presentation_date" jdbcType="DATE" property="presentationDate" />
<result column="iss_bank_name_and_address" jdbcType="VARCHAR" property="issBankNameAndAddress" />
<result column="transport" jdbcType="VARCHAR" property="transport" />
<result column="partial_shipment" jdbcType="VARCHAR" property="partialShipment" />
<result column="credit_the_quota" jdbcType="VARCHAR" property="creditTheQuota" />
<result column="customer_settlement_account" jdbcType="VARCHAR" property="customerSettlementAccount" />
<result column="margin_account" jdbcType="VARCHAR" property="marginAccount" />
<result column="currency_one" jdbcType="VARCHAR" property="currencyOne" />
<result column="currency_two" jdbcType="VARCHAR" property="currencyTwo" />
<result column="amount_money_one" jdbcType="VARCHAR" property="amountMoneyOne" />
<result column="amount_money_two" jdbcType="VARCHAR" property="amountMoneyTwo" />
<result column="notification_line_code" jdbcType="VARCHAR" property="notificationLineCode" />
<result column="charging_method" jdbcType="VARCHAR" property="chargingMethod" />
<result column="notify_bank_name_and_address" jdbcType="VARCHAR" property="notifyBankNameAndAddress" />
<result column="charging_currency" jdbcType="VARCHAR" property="chargingCurrency" />
<result column="credit_handling_fees" jdbcType="VARCHAR" property="creditHandlingFees" />
<result column="currency_letter_credit" jdbcType="VARCHAR" property="currencyLetterCredit" />
<result column="telegram_fee_type" jdbcType="VARCHAR" property="telegramFeeType" />
<result column="letter_credit_amount" jdbcType="VARCHAR" property="letterCreditAmount" />
<result column="actual_telegram_fee_received" jdbcType="VARCHAR" property="actualTelegramFeeReceived" />
<result column="service_fee_deduction_account" jdbcType="VARCHAR" property="serviceFeeDeductionAccount" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="save_status" jdbcType="INTEGER" property="saveStatus" />
<result column="submit_status" jdbcType="INTEGER" property="submitStatus" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="error_number" jdbcType="INTEGER" property="errorNumber" />
<result column="number" jdbcType="INTEGER" property="number" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, issue_date, spot, doc_credit_number, long_term_term, app_name_and_address, type_letter_credit,
letter_credit_payment_method, ben_name_and_address, lssuance_method, due_date, ben_location,
place_expiry, lssuing_bank_code, presentation_date, iss_bank_name_and_address, transport,
partial_shipment, credit_the_quota, customer_settlement_account, margin_account,
currency_one, currency_two, amount_money_one, amount_money_two, notification_line_code,
charging_method, notify_bank_name_and_address, charging_currency, credit_handling_fees,
currency_letter_credit, telegram_fee_type, letter_credit_amount, actual_telegram_fee_received,
service_fee_deduction_account, create_time, update_time, save_status, submit_status,
user_id, error_number, number
</sql>
<select id="selectByExample" parameterType="com.sztzjy.bank.entity.OpeningLetterCreditExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from opening_letter_credit
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from opening_letter_credit
where id = #{id,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from opening_letter_credit
where id = #{id,jdbcType=VARCHAR}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.bank.entity.OpeningLetterCreditExample">
delete from opening_letter_credit
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.bank.entity.OpeningLetterCredit">
insert into opening_letter_credit (id, issue_date, spot,
doc_credit_number, long_term_term, app_name_and_address,
type_letter_credit, letter_credit_payment_method,
ben_name_and_address, lssuance_method, due_date,
ben_location, place_expiry, lssuing_bank_code,
presentation_date, iss_bank_name_and_address, transport,
partial_shipment, credit_the_quota, customer_settlement_account,
margin_account, currency_one, currency_two,
amount_money_one, amount_money_two, notification_line_code,
charging_method, notify_bank_name_and_address,
charging_currency, credit_handling_fees, currency_letter_credit,
telegram_fee_type, letter_credit_amount, actual_telegram_fee_received,
service_fee_deduction_account, create_time,
update_time, save_status, submit_status,
user_id, error_number, number
)
values (#{id,jdbcType=VARCHAR}, #{issueDate,jdbcType=DATE}, #{spot,jdbcType=VARCHAR},
#{docCreditNumber,jdbcType=VARCHAR}, #{longTermTerm,jdbcType=VARCHAR}, #{appNameAndAddress,jdbcType=VARCHAR},
#{typeLetterCredit,jdbcType=VARCHAR}, #{letterCreditPaymentMethod,jdbcType=VARCHAR},
#{benNameAndAddress,jdbcType=VARCHAR}, #{lssuanceMethod,jdbcType=VARCHAR}, #{dueDate,jdbcType=DATE},
#{benLocation,jdbcType=VARCHAR}, #{placeExpiry,jdbcType=VARCHAR}, #{lssuingBankCode,jdbcType=VARCHAR},
#{presentationDate,jdbcType=DATE}, #{issBankNameAndAddress,jdbcType=VARCHAR}, #{transport,jdbcType=VARCHAR},
#{partialShipment,jdbcType=VARCHAR}, #{creditTheQuota,jdbcType=VARCHAR}, #{customerSettlementAccount,jdbcType=VARCHAR},
#{marginAccount,jdbcType=VARCHAR}, #{currencyOne,jdbcType=VARCHAR}, #{currencyTwo,jdbcType=VARCHAR},
#{amountMoneyOne,jdbcType=VARCHAR}, #{amountMoneyTwo,jdbcType=VARCHAR}, #{notificationLineCode,jdbcType=VARCHAR},
#{chargingMethod,jdbcType=VARCHAR}, #{notifyBankNameAndAddress,jdbcType=VARCHAR},
#{chargingCurrency,jdbcType=VARCHAR}, #{creditHandlingFees,jdbcType=VARCHAR}, #{currencyLetterCredit,jdbcType=VARCHAR},
#{telegramFeeType,jdbcType=VARCHAR}, #{letterCreditAmount,jdbcType=VARCHAR}, #{actualTelegramFeeReceived,jdbcType=VARCHAR},
#{serviceFeeDeductionAccount,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{saveStatus,jdbcType=INTEGER}, #{submitStatus,jdbcType=INTEGER},
#{userId,jdbcType=VARCHAR}, #{errorNumber,jdbcType=INTEGER}, #{number,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.bank.entity.OpeningLetterCredit">
insert into opening_letter_credit
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="issueDate != null">
issue_date,
</if>
<if test="spot != null">
spot,
</if>
<if test="docCreditNumber != null">
doc_credit_number,
</if>
<if test="longTermTerm != null">
long_term_term,
</if>
<if test="appNameAndAddress != null">
app_name_and_address,
</if>
<if test="typeLetterCredit != null">
type_letter_credit,
</if>
<if test="letterCreditPaymentMethod != null">
letter_credit_payment_method,
</if>
<if test="benNameAndAddress != null">
ben_name_and_address,
</if>
<if test="lssuanceMethod != null">
lssuance_method,
</if>
<if test="dueDate != null">
due_date,
</if>
<if test="benLocation != null">
ben_location,
</if>
<if test="placeExpiry != null">
place_expiry,
</if>
<if test="lssuingBankCode != null">
lssuing_bank_code,
</if>
<if test="presentationDate != null">
presentation_date,
</if>
<if test="issBankNameAndAddress != null">
iss_bank_name_and_address,
</if>
<if test="transport != null">
transport,
</if>
<if test="partialShipment != null">
partial_shipment,
</if>
<if test="creditTheQuota != null">
credit_the_quota,
</if>
<if test="customerSettlementAccount != null">
customer_settlement_account,
</if>
<if test="marginAccount != null">
margin_account,
</if>
<if test="currencyOne != null">
currency_one,
</if>
<if test="currencyTwo != null">
currency_two,
</if>
<if test="amountMoneyOne != null">
amount_money_one,
</if>
<if test="amountMoneyTwo != null">
amount_money_two,
</if>
<if test="notificationLineCode != null">
notification_line_code,
</if>
<if test="chargingMethod != null">
charging_method,
</if>
<if test="notifyBankNameAndAddress != null">
notify_bank_name_and_address,
</if>
<if test="chargingCurrency != null">
charging_currency,
</if>
<if test="creditHandlingFees != null">
credit_handling_fees,
</if>
<if test="currencyLetterCredit != null">
currency_letter_credit,
</if>
<if test="telegramFeeType != null">
telegram_fee_type,
</if>
<if test="letterCreditAmount != null">
letter_credit_amount,
</if>
<if test="actualTelegramFeeReceived != null">
actual_telegram_fee_received,
</if>
<if test="serviceFeeDeductionAccount != null">
service_fee_deduction_account,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="saveStatus != null">
save_status,
</if>
<if test="submitStatus != null">
submit_status,
</if>
<if test="userId != null">
user_id,
</if>
<if test="errorNumber != null">
error_number,
</if>
<if test="number != null">
number,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="issueDate != null">
#{issueDate,jdbcType=DATE},
</if>
<if test="spot != null">
#{spot,jdbcType=VARCHAR},
</if>
<if test="docCreditNumber != null">
#{docCreditNumber,jdbcType=VARCHAR},
</if>
<if test="longTermTerm != null">
#{longTermTerm,jdbcType=VARCHAR},
</if>
<if test="appNameAndAddress != null">
#{appNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="typeLetterCredit != null">
#{typeLetterCredit,jdbcType=VARCHAR},
</if>
<if test="letterCreditPaymentMethod != null">
#{letterCreditPaymentMethod,jdbcType=VARCHAR},
</if>
<if test="benNameAndAddress != null">
#{benNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="lssuanceMethod != null">
#{lssuanceMethod,jdbcType=VARCHAR},
</if>
<if test="dueDate != null">
#{dueDate,jdbcType=DATE},
</if>
<if test="benLocation != null">
#{benLocation,jdbcType=VARCHAR},
</if>
<if test="placeExpiry != null">
#{placeExpiry,jdbcType=VARCHAR},
</if>
<if test="lssuingBankCode != null">
#{lssuingBankCode,jdbcType=VARCHAR},
</if>
<if test="presentationDate != null">
#{presentationDate,jdbcType=DATE},
</if>
<if test="issBankNameAndAddress != null">
#{issBankNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="transport != null">
#{transport,jdbcType=VARCHAR},
</if>
<if test="partialShipment != null">
#{partialShipment,jdbcType=VARCHAR},
</if>
<if test="creditTheQuota != null">
#{creditTheQuota,jdbcType=VARCHAR},
</if>
<if test="customerSettlementAccount != null">
#{customerSettlementAccount,jdbcType=VARCHAR},
</if>
<if test="marginAccount != null">
#{marginAccount,jdbcType=VARCHAR},
</if>
<if test="currencyOne != null">
#{currencyOne,jdbcType=VARCHAR},
</if>
<if test="currencyTwo != null">
#{currencyTwo,jdbcType=VARCHAR},
</if>
<if test="amountMoneyOne != null">
#{amountMoneyOne,jdbcType=VARCHAR},
</if>
<if test="amountMoneyTwo != null">
#{amountMoneyTwo,jdbcType=VARCHAR},
</if>
<if test="notificationLineCode != null">
#{notificationLineCode,jdbcType=VARCHAR},
</if>
<if test="chargingMethod != null">
#{chargingMethod,jdbcType=VARCHAR},
</if>
<if test="notifyBankNameAndAddress != null">
#{notifyBankNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="chargingCurrency != null">
#{chargingCurrency,jdbcType=VARCHAR},
</if>
<if test="creditHandlingFees != null">
#{creditHandlingFees,jdbcType=VARCHAR},
</if>
<if test="currencyLetterCredit != null">
#{currencyLetterCredit,jdbcType=VARCHAR},
</if>
<if test="telegramFeeType != null">
#{telegramFeeType,jdbcType=VARCHAR},
</if>
<if test="letterCreditAmount != null">
#{letterCreditAmount,jdbcType=VARCHAR},
</if>
<if test="actualTelegramFeeReceived != null">
#{actualTelegramFeeReceived,jdbcType=VARCHAR},
</if>
<if test="serviceFeeDeductionAccount != null">
#{serviceFeeDeductionAccount,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="saveStatus != null">
#{saveStatus,jdbcType=INTEGER},
</if>
<if test="submitStatus != null">
#{submitStatus,jdbcType=INTEGER},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="errorNumber != null">
#{errorNumber,jdbcType=INTEGER},
</if>
<if test="number != null">
#{number,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.bank.entity.OpeningLetterCreditExample" resultType="java.lang.Long">
select count(*) from opening_letter_credit
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update opening_letter_credit
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=VARCHAR},
</if>
<if test="record.issueDate != null">
issue_date = #{record.issueDate,jdbcType=DATE},
</if>
<if test="record.spot != null">
spot = #{record.spot,jdbcType=VARCHAR},
</if>
<if test="record.docCreditNumber != null">
doc_credit_number = #{record.docCreditNumber,jdbcType=VARCHAR},
</if>
<if test="record.longTermTerm != null">
long_term_term = #{record.longTermTerm,jdbcType=VARCHAR},
</if>
<if test="record.appNameAndAddress != null">
app_name_and_address = #{record.appNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="record.typeLetterCredit != null">
type_letter_credit = #{record.typeLetterCredit,jdbcType=VARCHAR},
</if>
<if test="record.letterCreditPaymentMethod != null">
letter_credit_payment_method = #{record.letterCreditPaymentMethod,jdbcType=VARCHAR},
</if>
<if test="record.benNameAndAddress != null">
ben_name_and_address = #{record.benNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="record.lssuanceMethod != null">
lssuance_method = #{record.lssuanceMethod,jdbcType=VARCHAR},
</if>
<if test="record.dueDate != null">
due_date = #{record.dueDate,jdbcType=DATE},
</if>
<if test="record.benLocation != null">
ben_location = #{record.benLocation,jdbcType=VARCHAR},
</if>
<if test="record.placeExpiry != null">
place_expiry = #{record.placeExpiry,jdbcType=VARCHAR},
</if>
<if test="record.lssuingBankCode != null">
lssuing_bank_code = #{record.lssuingBankCode,jdbcType=VARCHAR},
</if>
<if test="record.presentationDate != null">
presentation_date = #{record.presentationDate,jdbcType=DATE},
</if>
<if test="record.issBankNameAndAddress != null">
iss_bank_name_and_address = #{record.issBankNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="record.transport != null">
transport = #{record.transport,jdbcType=VARCHAR},
</if>
<if test="record.partialShipment != null">
partial_shipment = #{record.partialShipment,jdbcType=VARCHAR},
</if>
<if test="record.creditTheQuota != null">
credit_the_quota = #{record.creditTheQuota,jdbcType=VARCHAR},
</if>
<if test="record.customerSettlementAccount != null">
customer_settlement_account = #{record.customerSettlementAccount,jdbcType=VARCHAR},
</if>
<if test="record.marginAccount != null">
margin_account = #{record.marginAccount,jdbcType=VARCHAR},
</if>
<if test="record.currencyOne != null">
currency_one = #{record.currencyOne,jdbcType=VARCHAR},
</if>
<if test="record.currencyTwo != null">
currency_two = #{record.currencyTwo,jdbcType=VARCHAR},
</if>
<if test="record.amountMoneyOne != null">
amount_money_one = #{record.amountMoneyOne,jdbcType=VARCHAR},
</if>
<if test="record.amountMoneyTwo != null">
amount_money_two = #{record.amountMoneyTwo,jdbcType=VARCHAR},
</if>
<if test="record.notificationLineCode != null">
notification_line_code = #{record.notificationLineCode,jdbcType=VARCHAR},
</if>
<if test="record.chargingMethod != null">
charging_method = #{record.chargingMethod,jdbcType=VARCHAR},
</if>
<if test="record.notifyBankNameAndAddress != null">
notify_bank_name_and_address = #{record.notifyBankNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="record.chargingCurrency != null">
charging_currency = #{record.chargingCurrency,jdbcType=VARCHAR},
</if>
<if test="record.creditHandlingFees != null">
credit_handling_fees = #{record.creditHandlingFees,jdbcType=VARCHAR},
</if>
<if test="record.currencyLetterCredit != null">
currency_letter_credit = #{record.currencyLetterCredit,jdbcType=VARCHAR},
</if>
<if test="record.telegramFeeType != null">
telegram_fee_type = #{record.telegramFeeType,jdbcType=VARCHAR},
</if>
<if test="record.letterCreditAmount != null">
letter_credit_amount = #{record.letterCreditAmount,jdbcType=VARCHAR},
</if>
<if test="record.actualTelegramFeeReceived != null">
actual_telegram_fee_received = #{record.actualTelegramFeeReceived,jdbcType=VARCHAR},
</if>
<if test="record.serviceFeeDeductionAccount != null">
service_fee_deduction_account = #{record.serviceFeeDeductionAccount,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.saveStatus != null">
save_status = #{record.saveStatus,jdbcType=INTEGER},
</if>
<if test="record.submitStatus != null">
submit_status = #{record.submitStatus,jdbcType=INTEGER},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.errorNumber != null">
error_number = #{record.errorNumber,jdbcType=INTEGER},
</if>
<if test="record.number != null">
number = #{record.number,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update opening_letter_credit
set id = #{record.id,jdbcType=VARCHAR},
issue_date = #{record.issueDate,jdbcType=DATE},
spot = #{record.spot,jdbcType=VARCHAR},
doc_credit_number = #{record.docCreditNumber,jdbcType=VARCHAR},
long_term_term = #{record.longTermTerm,jdbcType=VARCHAR},
app_name_and_address = #{record.appNameAndAddress,jdbcType=VARCHAR},
type_letter_credit = #{record.typeLetterCredit,jdbcType=VARCHAR},
letter_credit_payment_method = #{record.letterCreditPaymentMethod,jdbcType=VARCHAR},
ben_name_and_address = #{record.benNameAndAddress,jdbcType=VARCHAR},
lssuance_method = #{record.lssuanceMethod,jdbcType=VARCHAR},
due_date = #{record.dueDate,jdbcType=DATE},
ben_location = #{record.benLocation,jdbcType=VARCHAR},
place_expiry = #{record.placeExpiry,jdbcType=VARCHAR},
lssuing_bank_code = #{record.lssuingBankCode,jdbcType=VARCHAR},
presentation_date = #{record.presentationDate,jdbcType=DATE},
iss_bank_name_and_address = #{record.issBankNameAndAddress,jdbcType=VARCHAR},
transport = #{record.transport,jdbcType=VARCHAR},
partial_shipment = #{record.partialShipment,jdbcType=VARCHAR},
credit_the_quota = #{record.creditTheQuota,jdbcType=VARCHAR},
customer_settlement_account = #{record.customerSettlementAccount,jdbcType=VARCHAR},
margin_account = #{record.marginAccount,jdbcType=VARCHAR},
currency_one = #{record.currencyOne,jdbcType=VARCHAR},
currency_two = #{record.currencyTwo,jdbcType=VARCHAR},
amount_money_one = #{record.amountMoneyOne,jdbcType=VARCHAR},
amount_money_two = #{record.amountMoneyTwo,jdbcType=VARCHAR},
notification_line_code = #{record.notificationLineCode,jdbcType=VARCHAR},
charging_method = #{record.chargingMethod,jdbcType=VARCHAR},
notify_bank_name_and_address = #{record.notifyBankNameAndAddress,jdbcType=VARCHAR},
charging_currency = #{record.chargingCurrency,jdbcType=VARCHAR},
credit_handling_fees = #{record.creditHandlingFees,jdbcType=VARCHAR},
currency_letter_credit = #{record.currencyLetterCredit,jdbcType=VARCHAR},
telegram_fee_type = #{record.telegramFeeType,jdbcType=VARCHAR},
letter_credit_amount = #{record.letterCreditAmount,jdbcType=VARCHAR},
actual_telegram_fee_received = #{record.actualTelegramFeeReceived,jdbcType=VARCHAR},
service_fee_deduction_account = #{record.serviceFeeDeductionAccount,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}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.bank.entity.OpeningLetterCredit">
update opening_letter_credit
<set>
<if test="issueDate != null">
issue_date = #{issueDate,jdbcType=DATE},
</if>
<if test="spot != null">
spot = #{spot,jdbcType=VARCHAR},
</if>
<if test="docCreditNumber != null">
doc_credit_number = #{docCreditNumber,jdbcType=VARCHAR},
</if>
<if test="longTermTerm != null">
long_term_term = #{longTermTerm,jdbcType=VARCHAR},
</if>
<if test="appNameAndAddress != null">
app_name_and_address = #{appNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="typeLetterCredit != null">
type_letter_credit = #{typeLetterCredit,jdbcType=VARCHAR},
</if>
<if test="letterCreditPaymentMethod != null">
letter_credit_payment_method = #{letterCreditPaymentMethod,jdbcType=VARCHAR},
</if>
<if test="benNameAndAddress != null">
ben_name_and_address = #{benNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="lssuanceMethod != null">
lssuance_method = #{lssuanceMethod,jdbcType=VARCHAR},
</if>
<if test="dueDate != null">
due_date = #{dueDate,jdbcType=DATE},
</if>
<if test="benLocation != null">
ben_location = #{benLocation,jdbcType=VARCHAR},
</if>
<if test="placeExpiry != null">
place_expiry = #{placeExpiry,jdbcType=VARCHAR},
</if>
<if test="lssuingBankCode != null">
lssuing_bank_code = #{lssuingBankCode,jdbcType=VARCHAR},
</if>
<if test="presentationDate != null">
presentation_date = #{presentationDate,jdbcType=DATE},
</if>
<if test="issBankNameAndAddress != null">
iss_bank_name_and_address = #{issBankNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="transport != null">
transport = #{transport,jdbcType=VARCHAR},
</if>
<if test="partialShipment != null">
partial_shipment = #{partialShipment,jdbcType=VARCHAR},
</if>
<if test="creditTheQuota != null">
credit_the_quota = #{creditTheQuota,jdbcType=VARCHAR},
</if>
<if test="customerSettlementAccount != null">
customer_settlement_account = #{customerSettlementAccount,jdbcType=VARCHAR},
</if>
<if test="marginAccount != null">
margin_account = #{marginAccount,jdbcType=VARCHAR},
</if>
<if test="currencyOne != null">
currency_one = #{currencyOne,jdbcType=VARCHAR},
</if>
<if test="currencyTwo != null">
currency_two = #{currencyTwo,jdbcType=VARCHAR},
</if>
<if test="amountMoneyOne != null">
amount_money_one = #{amountMoneyOne,jdbcType=VARCHAR},
</if>
<if test="amountMoneyTwo != null">
amount_money_two = #{amountMoneyTwo,jdbcType=VARCHAR},
</if>
<if test="notificationLineCode != null">
notification_line_code = #{notificationLineCode,jdbcType=VARCHAR},
</if>
<if test="chargingMethod != null">
charging_method = #{chargingMethod,jdbcType=VARCHAR},
</if>
<if test="notifyBankNameAndAddress != null">
notify_bank_name_and_address = #{notifyBankNameAndAddress,jdbcType=VARCHAR},
</if>
<if test="chargingCurrency != null">
charging_currency = #{chargingCurrency,jdbcType=VARCHAR},
</if>
<if test="creditHandlingFees != null">
credit_handling_fees = #{creditHandlingFees,jdbcType=VARCHAR},
</if>
<if test="currencyLetterCredit != null">
currency_letter_credit = #{currencyLetterCredit,jdbcType=VARCHAR},
</if>
<if test="telegramFeeType != null">
telegram_fee_type = #{telegramFeeType,jdbcType=VARCHAR},
</if>
<if test="letterCreditAmount != null">
letter_credit_amount = #{letterCreditAmount,jdbcType=VARCHAR},
</if>
<if test="actualTelegramFeeReceived != null">
actual_telegram_fee_received = #{actualTelegramFeeReceived,jdbcType=VARCHAR},
</if>
<if test="serviceFeeDeductionAccount != null">
service_fee_deduction_account = #{serviceFeeDeductionAccount,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="saveStatus != null">
save_status = #{saveStatus,jdbcType=INTEGER},
</if>
<if test="submitStatus != null">
submit_status = #{submitStatus,jdbcType=INTEGER},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="errorNumber != null">
error_number = #{errorNumber,jdbcType=INTEGER},
</if>
<if test="number != null">
number = #{number,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.bank.entity.OpeningLetterCredit">
update opening_letter_credit
set issue_date = #{issueDate,jdbcType=DATE},
spot = #{spot,jdbcType=VARCHAR},
doc_credit_number = #{docCreditNumber,jdbcType=VARCHAR},
long_term_term = #{longTermTerm,jdbcType=VARCHAR},
app_name_and_address = #{appNameAndAddress,jdbcType=VARCHAR},
type_letter_credit = #{typeLetterCredit,jdbcType=VARCHAR},
letter_credit_payment_method = #{letterCreditPaymentMethod,jdbcType=VARCHAR},
ben_name_and_address = #{benNameAndAddress,jdbcType=VARCHAR},
lssuance_method = #{lssuanceMethod,jdbcType=VARCHAR},
due_date = #{dueDate,jdbcType=DATE},
ben_location = #{benLocation,jdbcType=VARCHAR},
place_expiry = #{placeExpiry,jdbcType=VARCHAR},
lssuing_bank_code = #{lssuingBankCode,jdbcType=VARCHAR},
presentation_date = #{presentationDate,jdbcType=DATE},
iss_bank_name_and_address = #{issBankNameAndAddress,jdbcType=VARCHAR},
transport = #{transport,jdbcType=VARCHAR},
partial_shipment = #{partialShipment,jdbcType=VARCHAR},
credit_the_quota = #{creditTheQuota,jdbcType=VARCHAR},
customer_settlement_account = #{customerSettlementAccount,jdbcType=VARCHAR},
margin_account = #{marginAccount,jdbcType=VARCHAR},
currency_one = #{currencyOne,jdbcType=VARCHAR},
currency_two = #{currencyTwo,jdbcType=VARCHAR},
amount_money_one = #{amountMoneyOne,jdbcType=VARCHAR},
amount_money_two = #{amountMoneyTwo,jdbcType=VARCHAR},
notification_line_code = #{notificationLineCode,jdbcType=VARCHAR},
charging_method = #{chargingMethod,jdbcType=VARCHAR},
notify_bank_name_and_address = #{notifyBankNameAndAddress,jdbcType=VARCHAR},
charging_currency = #{chargingCurrency,jdbcType=VARCHAR},
credit_handling_fees = #{creditHandlingFees,jdbcType=VARCHAR},
currency_letter_credit = #{currencyLetterCredit,jdbcType=VARCHAR},
telegram_fee_type = #{telegramFeeType,jdbcType=VARCHAR},
letter_credit_amount = #{letterCreditAmount,jdbcType=VARCHAR},
actual_telegram_fee_received = #{actualTelegramFeeReceived,jdbcType=VARCHAR},
service_fee_deduction_account = #{serviceFeeDeductionAccount,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>
</mapper>
Loading…
Cancel
Save