|
@@ -30,6 +30,10 @@
|
|
|
<result column="contrantNum" property="contrantNum" jdbcType="VARCHAR" />
|
|
|
<result column="lowerFileName" property="lowerFileName" jdbcType="VARCHAR" />
|
|
|
<result column="lowerBase64Str" property="lowerBase64Str" jdbcType="VARCHAR" />
|
|
|
+ <result column="invoiceMail" property="invoiceMail" jdbcType="VARCHAR" />
|
|
|
+ <result column="promiseFileName" property="promiseFileName" jdbcType="VARCHAR" />
|
|
|
+ <result column="promiseFileStatus" property="promiseFileStatus" jdbcType="VARCHAR" />
|
|
|
+ <result column="promiseNum" property="promiseNum" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
@@ -61,7 +65,10 @@
|
|
|
<result column="contrantNum" property="contrantNum" jdbcType="VARCHAR" />
|
|
|
<result column="lowerFileName" property="lowerFileName" jdbcType="VARCHAR" />
|
|
|
<result column="lowerBase64Str" property="lowerBase64Str" jdbcType="VARCHAR" />
|
|
|
-
|
|
|
+ <result column="invoiceMail" property="invoiceMail" jdbcType="VARCHAR" />
|
|
|
+ <result column="promiseFileName" property="promiseFileName" jdbcType="VARCHAR" />
|
|
|
+ <result column="promiseFileStatus" property="promiseFileStatus" jdbcType="VARCHAR" />
|
|
|
+ <result column="promiseNum" property="promiseNum" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<resultMap id="BaseResultMapNoLocalBase64Str" type="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
@@ -89,12 +96,16 @@
|
|
|
<result column="contractSuc" property="contractSuc" jdbcType="INTEGER" />
|
|
|
<result column="contrantNum" property="contrantNum" jdbcType="VARCHAR" />
|
|
|
<result column="lowerFileName" property="lowerFileName" jdbcType="VARCHAR" />
|
|
|
+ <result column="invoiceMail" property="invoiceMail" jdbcType="VARCHAR" />
|
|
|
+ <result column="promiseFileName" property="promiseFileName" jdbcType="VARCHAR" />
|
|
|
+ <result column="promiseFileStatus" property="promiseFileStatus" jdbcType="VARCHAR" />
|
|
|
+ <result column="promiseNum" property="promiseNum" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, customerName,company_leader, company_leader_Phone, company_name, company_referenceNum, company_openbank,
|
|
|
company_openbank_acc, company_adress, company_phone, createTime, company_belong_name,
|
|
|
rec_status, inter_type,bussiness_type,company_type,operating_rangeType,company_num,service_startTime
|
|
|
- ,service_endTime,service_type,contractFileName,contractSuc,contrantNum,lowerFileName,fileMessage
|
|
|
+ ,service_endTime,service_type,contractFileName,contractSuc,contrantNum,lowerFileName,fileMessage,invoiceMail,promiseFileName,promiseFileStatus,promiseNum
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectAllByPage" resultMap="BaseResultMap">
|
|
@@ -292,14 +303,14 @@
|
|
|
company_openbank_acc, company_adress, company_phone,
|
|
|
createTime, company_belong_name, rec_status,
|
|
|
inter_type,bussiness_type,company_type,operating_rangeType,company_num,
|
|
|
- service_startTime,service_endTime,service_type,contractFileName,base64Str,contractSuc,lowerFileName,lowerBase64Str
|
|
|
+ service_startTime,service_endTime,service_type,contractFileName,base64Str,contractSuc,lowerFileName,lowerBase64Str,invoiceMail
|
|
|
)
|
|
|
values (#{customerName,jdbcType=VARCHAR}, #{companyLeader,jdbcType=VARCHAR}, #{companyLeaderPhone,jdbcType=VARCHAR},
|
|
|
#{companyName,jdbcType=VARCHAR}, #{companyReferencenum,jdbcType=VARCHAR}, #{companyOpenbank,jdbcType=VARCHAR},
|
|
|
#{companyOpenbankAcc,jdbcType=VARCHAR}, #{companyAdress,jdbcType=VARCHAR}, #{companyPhone,jdbcType=VARCHAR},
|
|
|
#{createtime,jdbcType=TIMESTAMP}, #{companyBelongName,jdbcType=VARCHAR}, #{recStatus,jdbcType=INTEGER},
|
|
|
#{interType,jdbcType=INTEGER}, #{bussinessType,jdbcType=INTEGER},#{companyType,jdbcType=INTEGER},#{operatingRangeType,jdbcType=INTEGER},#{companyNum,jdbcType=VARCHAR},
|
|
|
- #{serviceStartTime,jdbcType=VARCHAR},#{serviceEndTime,jdbcType=VARCHAR},#{serviceType,jdbcType=INTEGER},#{contractFileName,jdbcType=VARCHAR},#{base64Str,jdbcType=VARCHAR},#{contractSuc,jdbcType=INTEGER},#{lowerFileName,jdbcType=VARCHAR},#{lowerBase64Str,jdbcType=VARCHAR}
|
|
|
+ #{serviceStartTime,jdbcType=VARCHAR},#{serviceEndTime,jdbcType=VARCHAR},#{serviceType,jdbcType=INTEGER},#{contractFileName,jdbcType=VARCHAR},#{base64Str,jdbcType=VARCHAR},#{contractSuc,jdbcType=INTEGER},#{lowerFileName,jdbcType=VARCHAR},#{lowerBase64Str,jdbcType=VARCHAR},#{invoiceMail,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
|
|
@@ -344,6 +355,9 @@
|
|
|
<if test="interType != null" >
|
|
|
inter_type,
|
|
|
</if>
|
|
|
+ <if test="invoiceMail !=null">
|
|
|
+ invoiceMail
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
@@ -385,6 +399,9 @@
|
|
|
<if test="interType != null" >
|
|
|
#{interType,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
+ <if test="invoiceMail !=null">
|
|
|
+ #{invoiceMail,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
|
|
@@ -468,10 +485,32 @@
|
|
|
<if test="fileMessage != null" >
|
|
|
fileMessage = #{fileMessage,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="invoiceMail !=null">
|
|
|
+ invoiceMail = #{invoiceMail,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where company_name = BINARY #{companyName,jdbcType=VARCHAR} and bussiness_type = #{bussinessType,jdbcType=INTEGER} and company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updatePromiseInfo" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerRec">
|
|
|
+ update t_customer_rec
|
|
|
+ <set >
|
|
|
+ <if test="promiseFileName != null and promiseFileName != ''" >
|
|
|
+ promiseFileName = #{promiseFileName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="promiseBase64Str != null and promiseBase64Str != ''" >
|
|
|
+ promiseBase64Str = #{promiseBase64Str,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="promiseFileStatus != null and promiseFileStatus != ''" >
|
|
|
+ promiseFileStatus = #{promiseFileStatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="promiseNum != null and promiseNum != ''" >
|
|
|
+ promiseNum = #{promiseNum,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id = BINARY #{id,jdbcType=BIGINT}
|
|
|
+ </update>
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -571,6 +610,9 @@
|
|
|
<if test="fileMessage != null" >
|
|
|
fileMessage = #{fileMessage,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="invoiceMail !=null">
|
|
|
+ invoiceMail = #{invoiceMail,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = BINARY #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -598,7 +640,8 @@
|
|
|
contractFileName = #{contractFileName,jdbcType=VARCHAR},
|
|
|
base64Str = #{base64Str,jdbcType=VARCHAR},
|
|
|
contractSuc = #{contractSuc,jdbcType=INTEGER},
|
|
|
- contrantNum = #{contrantNum,jdbcType=VARCHAR}
|
|
|
+ contrantNum = #{contrantNum,jdbcType=VARCHAR},
|
|
|
+ invoiceMail = #{invoiceMail,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByCompany" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
|
|
@@ -625,7 +668,8 @@
|
|
|
contractFileName = #{contractFileName,jdbcType=VARCHAR},
|
|
|
base64Str = #{base64Str,jdbcType=VARCHAR},
|
|
|
contractSuc = #{contractSuc,jdbcType=INTEGER},
|
|
|
- contrantNum = #{contrantNum,jdbcType=VARCHAR}
|
|
|
+ contrantNum = #{contrantNum,jdbcType=VARCHAR},
|
|
|
+ invoiceMail = #{invoiceMail,jdbcType=VARCHAR}
|
|
|
where company_name = BINARY #{companyName,jdbcType=VARCHAR} and bussiness_type = #{bussinessType,jdbcType=INTEGER} and company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper>
|