公共计分方法修改
parent
077ab97c38
commit
e98f525fc1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||
}
|
@ -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…
Reference in New Issue