|
@@ -125,6 +125,13 @@
|
|
|
from t_customer_rec
|
|
|
where customerName = #{customerName,jdbcType=VARCHAR} AND company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR} and rec_status =1
|
|
|
</select>
|
|
|
+ <select id="selectByCompanyReference" resultMap="BaseResultMap" parameterType="java.lang.String" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from t_customer_rec
|
|
|
+ where company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR} and rec_status =1
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectByCustomerNameAndCompanyConcat" resultMap="BaseResultMap" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />,base64Str
|
|
@@ -137,6 +144,12 @@
|
|
|
from t_customer_rec
|
|
|
where customerName = #{customerName,jdbcType=VARCHAR} AND company_num = #{companyNum,jdbcType=VARCHAR}
|
|
|
</select>
|
|
|
+ <select id="selectByCompanyNum" resultMap="BaseResultMap" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from t_customer_rec
|
|
|
+ where company_num = #{companyNum,jdbcType=VARCHAR} and rec_status =1
|
|
|
+ </select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
delete from t_customer_rec
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
@@ -321,33 +334,60 @@
|
|
|
lowerBase64Str = #{lowerBase64Str,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
</set>
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
+ where company_name = #{companyName,jdbcType=VARCHAR} and bussiness_type = #{bussinessType,jdbcType=INTEGER} and company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
|
|
|
+ update t_customer_rec
|
|
|
+ set company_leader = #{companyLeader,jdbcType=VARCHAR},
|
|
|
+ company_leader_Phone = #{companyLeaderPhone,jdbcType=VARCHAR},
|
|
|
+ company_name = #{companyName,jdbcType=VARCHAR},
|
|
|
+ company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR},
|
|
|
+ company_openbank = #{companyOpenbank,jdbcType=VARCHAR},
|
|
|
+ company_openbank_acc = #{companyOpenbankAcc,jdbcType=VARCHAR},
|
|
|
+ company_adress = #{companyAdress,jdbcType=VARCHAR},
|
|
|
+ company_phone = #{companyPhone,jdbcType=VARCHAR},
|
|
|
+ createTime = #{createtime,jdbcType=TIMESTAMP},
|
|
|
+ company_belong_name = #{companyBelongName,jdbcType=VARCHAR},
|
|
|
+ rec_status = #{recStatus,jdbcType=INTEGER},
|
|
|
+ inter_type = #{interType,jdbcType=INTEGER},
|
|
|
+ bussiness_type = #{bussinessType,jdbcType=INTEGER},
|
|
|
+ company_type = #{companyType,jdbcType=INTEGER},
|
|
|
+ operating_rangeType = #{operatingRangeType,jdbcType=INTEGER},
|
|
|
+ company_num = #{companyNum,jdbcType=VARCHAR},
|
|
|
+ service_startTime = #{serviceStartTime,jdbcType=VARCHAR},
|
|
|
+ service_endTime = #{serviceEndTime,jdbcType=VARCHAR},
|
|
|
+ service_type = #{serviceType,jdbcType=INTEGER},
|
|
|
+ contractFileName = #{contractFileName,jdbcType=VARCHAR},
|
|
|
+ base64Str = #{base64Str,jdbcType=VARCHAR},
|
|
|
+ contractSuc = #{contractSuc,jdbcType=INTEGER},
|
|
|
+ contrantNum = #{contrantNum,jdbcType=VARCHAR}
|
|
|
+ where id = #{id,jdbcType=INTEGER}
|
|
|
+</update>
|
|
|
+ <update id="updateByCompany" parameterType="com.jkcredit.invoice.model.entity.customer.CustomerRec" >
|
|
|
update t_customer_rec
|
|
|
set company_leader = #{companyLeader,jdbcType=VARCHAR},
|
|
|
- company_leader_Phone = #{companyLeaderPhone,jdbcType=VARCHAR},
|
|
|
- company_name = #{companyName,jdbcType=VARCHAR},
|
|
|
- company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR},
|
|
|
- company_openbank = #{companyOpenbank,jdbcType=VARCHAR},
|
|
|
- company_openbank_acc = #{companyOpenbankAcc,jdbcType=VARCHAR},
|
|
|
- company_adress = #{companyAdress,jdbcType=VARCHAR},
|
|
|
- company_phone = #{companyPhone,jdbcType=VARCHAR},
|
|
|
- createTime = #{createtime,jdbcType=TIMESTAMP},
|
|
|
- company_belong_name = #{companyBelongName,jdbcType=VARCHAR},
|
|
|
- rec_status = #{recStatus,jdbcType=INTEGER},
|
|
|
- inter_type = #{interType,jdbcType=INTEGER},
|
|
|
- bussiness_type = #{bussinessType,jdbcType=INTEGER},
|
|
|
- company_type = #{companyType,jdbcType=INTEGER},
|
|
|
- operating_rangeType = #{operatingRangeType,jdbcType=INTEGER},
|
|
|
- company_num = #{companyNum,jdbcType=VARCHAR},
|
|
|
- service_startTime = #{serviceStartTime,jdbcType=VARCHAR},
|
|
|
- service_endTime = #{serviceEndTime,jdbcType=VARCHAR},
|
|
|
- service_type = #{serviceType,jdbcType=INTEGER},
|
|
|
- contractFileName = #{contractFileName,jdbcType=VARCHAR},
|
|
|
- base64Str = #{base64Str,jdbcType=VARCHAR},
|
|
|
- contractSuc = #{contractSuc,jdbcType=INTEGER},
|
|
|
- contrantNum = #{contrantNum,jdbcType=VARCHAR}
|
|
|
- where id = #{id,jdbcType=INTEGER}
|
|
|
+ company_leader_Phone = #{companyLeaderPhone,jdbcType=VARCHAR},
|
|
|
+ company_name = #{companyName,jdbcType=VARCHAR},
|
|
|
+ company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR},
|
|
|
+ company_openbank = #{companyOpenbank,jdbcType=VARCHAR},
|
|
|
+ company_openbank_acc = #{companyOpenbankAcc,jdbcType=VARCHAR},
|
|
|
+ company_adress = #{companyAdress,jdbcType=VARCHAR},
|
|
|
+ company_phone = #{companyPhone,jdbcType=VARCHAR},
|
|
|
+ createTime = #{createtime,jdbcType=TIMESTAMP},
|
|
|
+ company_belong_name = #{companyBelongName,jdbcType=VARCHAR},
|
|
|
+ rec_status = #{recStatus,jdbcType=INTEGER},
|
|
|
+ inter_type = #{interType,jdbcType=INTEGER},
|
|
|
+ bussiness_type = #{bussinessType,jdbcType=INTEGER},
|
|
|
+ company_type = #{companyType,jdbcType=INTEGER},
|
|
|
+ operating_rangeType = #{operatingRangeType,jdbcType=INTEGER},
|
|
|
+ company_num = #{companyNum,jdbcType=VARCHAR},
|
|
|
+ service_startTime = #{serviceStartTime,jdbcType=VARCHAR},
|
|
|
+ service_endTime = #{serviceEndTime,jdbcType=VARCHAR},
|
|
|
+ service_type = #{serviceType,jdbcType=INTEGER},
|
|
|
+ contractFileName = #{contractFileName,jdbcType=VARCHAR},
|
|
|
+ base64Str = #{base64Str,jdbcType=VARCHAR},
|
|
|
+ contractSuc = #{contractSuc,jdbcType=INTEGER},
|
|
|
+ contrantNum = #{contrantNum,jdbcType=VARCHAR}
|
|
|
+ where company_name = #{companyName,jdbcType=VARCHAR} and bussiness_type = #{bussinessType,jdbcType=INTEGER} and company_referenceNum = #{companyReferencenum,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper>
|