|
@@ -1,7 +1,7 @@
|
|
|
<?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.jkcredit.invoice.mapper.customer.CustomerChangeInfoMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.jkcredit.invoice.model.entity.customer.CustometEtcChangeInfo">
|
|
|
+ <resultMap id="BaseResultMap" type="com.jkcredit.invoice.model.entity.customer.CustomerEtcChangeInfo">
|
|
|
<result column="customerId" jdbcType="VARCHAR" property="customerId" />
|
|
|
<result column="companyName" jdbcType="VARCHAR" property="companyName" />
|
|
|
<result column="companyNum" jdbcType="VARCHAR" property="companyNum" />
|
|
@@ -14,7 +14,21 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
customerId,companyName,companyNum,targetCompanyName,targetcompanyNum,applyId,changeTime,info
|
|
|
</sql>
|
|
|
- <insert id="insertCardChangeInfo" parameterType="com.jkcredit.invoice.model.entity.customer.CustometEtcChangeInfo">
|
|
|
+ <select id="selectAllByPage" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from t_change_card_info
|
|
|
+ <where>
|
|
|
+ <if test="custometEtcChangeInfo.customerId != null and customer.customerId != ''">
|
|
|
+ and customerId = BINARY #{custometEtcChangeInfo.customerId}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="custometEtcChangeInfo.companyName != null and custometEtcChangeInfo.companyName != ''">
|
|
|
+ and companyName = BINARY #{custometEtcChangeInfo.companyName}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+ <insert id="insertCardChangeInfo" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerEtcChangeInfo">
|
|
|
insert into t_change_card_info (customerId,companyName,companyNum,targetCompanyName,targetcompanyNum,applyId,changeTime,info)
|
|
|
values (#{customerId,jdbcType=VARCHAR},#{companyName,jdbcType=VARCHAR}, #{companyNum,jdbcType=VARCHAR}, #{targetCompanyName,jdbcType=VARCHAR},
|
|
|
#{targetcompanyNum,jdbcType=VARCHAR}, #{applyId,jdbcType=VARCHAR}, #{changeTime,jdbcType=VARCHAR},
|