|
@@ -27,6 +27,13 @@
|
|
|
<result column="creator" jdbcType="BIGINT" property="creator" />
|
|
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
|
|
|
<result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag" />
|
|
|
+ <result column="supplier_level" jdbcType="VARCHAR" property="supplierLevel" />
|
|
|
+ <result column="settlement_method" jdbcType="VARCHAR" property="settlementMethod" />
|
|
|
+ <result column="billing_cycle_days" jdbcType="INTEGER" property="billingCycleDays" />
|
|
|
+ <result column="procurement_contact" jdbcType="VARCHAR" property="procurementContact" />
|
|
|
+ <result column="delivery_days" jdbcType="INTEGER" property="deliverydays" />
|
|
|
+ <result column="invoice_type" jdbcType="VARCHAR" property="invoiceType" />
|
|
|
+ <result column="contract_upload" jdbcType="VARCHAR" property="contractUpload" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -89,7 +96,9 @@
|
|
|
<sql id="Base_Column_List">
|
|
|
id, supplier, contacts, phone_num, email, description, isystem, type, enabled, advance_in,
|
|
|
begin_need_get, begin_need_pay, all_need_get, all_need_pay, fax, telephone, address,
|
|
|
- tax_num, bank_name, account_number, tax_rate, sort, creator, tenant_id, delete_flag
|
|
|
+ tax_num, bank_name, account_number, tax_rate, sort, creator, tenant_id, delete_flag,
|
|
|
+ supplier_level, settlement_method, billing_cycle_days, procurement_contact, delivery_days,
|
|
|
+ invoice_type, contract_upload
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.SupplierExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -122,24 +131,23 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.jsh.erp.datasource.entities.Supplier">
|
|
|
- insert into jsh_supplier (id, supplier, contacts,
|
|
|
- phone_num, email, description,
|
|
|
- isystem, type, enabled,
|
|
|
- advance_in, begin_need_get, begin_need_pay,
|
|
|
- all_need_get, all_need_pay, fax,
|
|
|
- telephone, address, tax_num,
|
|
|
- bank_name, account_number, tax_rate,
|
|
|
- sort, creator, tenant_id,
|
|
|
- delete_flag)
|
|
|
- values (#{id,jdbcType=BIGINT}, #{supplier,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
|
|
|
- #{phoneNum,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
|
|
|
- #{isystem,jdbcType=TINYINT}, #{type,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT},
|
|
|
- #{advanceIn,jdbcType=DECIMAL}, #{beginNeedGet,jdbcType=DECIMAL}, #{beginNeedPay,jdbcType=DECIMAL},
|
|
|
- #{allNeedGet,jdbcType=DECIMAL}, #{allNeedPay,jdbcType=DECIMAL}, #{fax,jdbcType=VARCHAR},
|
|
|
- #{telephone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{taxNum,jdbcType=VARCHAR},
|
|
|
- #{bankName,jdbcType=VARCHAR}, #{accountNumber,jdbcType=VARCHAR}, #{taxRate,jdbcType=DECIMAL},
|
|
|
- #{sort,jdbcType=VARCHAR}, #{creator,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT},
|
|
|
- #{deleteFlag,jdbcType=VARCHAR})
|
|
|
+ insert into jsh_supplier (id, supplier, contacts, phone_num, email, description, isystem, type,
|
|
|
+ enabled, advance_in, begin_need_get, begin_need_pay, all_need_get,
|
|
|
+ all_need_pay, fax, telephone, address, tax_num, bank_name, account_number,
|
|
|
+ tax_rate, sort, creator, tenant_id, delete_flag, supplier_level,
|
|
|
+ settlement_method, billing_cycle_days, procurement_contact, delivery_days,
|
|
|
+ invoice_type, contract_upload)
|
|
|
+ values (#{id,jdbcType=BIGINT}, #{supplier,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR},
|
|
|
+ #{phoneNum,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
|
|
|
+ #{isystem,jdbcType=TINYINT}, #{type,jdbcType=VARCHAR}, #{enabled,jdbcType=BIT},
|
|
|
+ #{advanceIn,jdbcType=DECIMAL}, #{beginNeedGet,jdbcType=DECIMAL}, #{beginNeedPay,jdbcType=DECIMAL},
|
|
|
+ #{allNeedGet,jdbcType=DECIMAL}, #{allNeedPay,jdbcType=DECIMAL}, #{fax,jdbcType=VARCHAR},
|
|
|
+ #{telephone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{taxNum,jdbcType=VARCHAR},
|
|
|
+ #{bankName,jdbcType=VARCHAR}, #{accountNumber,jdbcType=VARCHAR}, #{taxRate,jdbcType=DECIMAL},
|
|
|
+ #{sort,jdbcType=VARCHAR}, #{creator,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT},
|
|
|
+ #{deleteFlag,jdbcType=VARCHAR}, #{supplierLevel,jdbcType=VARCHAR}, #{settlementMethod,jdbcType=VARCHAR},
|
|
|
+ #{billingCycleDays,jdbcType=INTEGER}, #{procurementContact,jdbcType=VARCHAR}, #{deliverydays,jdbcType=INTEGER},
|
|
|
+ #{invoiceType,jdbcType=VARCHAR}, #{contractUpload,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.Supplier">
|
|
|
insert into jsh_supplier
|
|
@@ -219,6 +227,27 @@
|
|
|
<if test="deleteFlag != null">
|
|
|
delete_flag,
|
|
|
</if>
|
|
|
+ <if test="supplierLevel != null">
|
|
|
+ supplier_level,
|
|
|
+ </if>
|
|
|
+ <if test="settlementMethod != null">
|
|
|
+ settlement_method,
|
|
|
+ </if>
|
|
|
+ <if test="billingCycleDays != null">
|
|
|
+ billing_cycle_days,
|
|
|
+ </if>
|
|
|
+ <if test="procurementContact != null">
|
|
|
+ procurement_contact,
|
|
|
+ </if>
|
|
|
+ <if test="deliverydays != null">
|
|
|
+ delivery_days,
|
|
|
+ </if>
|
|
|
+ <if test="invoiceType != null">
|
|
|
+ invoice_type,
|
|
|
+ </if>
|
|
|
+ <if test="contractUpload != null">
|
|
|
+ contract_upload,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
@@ -296,6 +325,27 @@
|
|
|
<if test="deleteFlag != null">
|
|
|
#{deleteFlag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="supplierLevel != null">
|
|
|
+ #{supplierLevel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="settlementMethod != null">
|
|
|
+ #{settlementMethod,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="billingCycleDays != null">
|
|
|
+ #{billingCycleDays,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="procurementContact != null">
|
|
|
+ #{procurementContact,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deliverydays != null">
|
|
|
+ #{deliverydays,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="invoiceType != null">
|
|
|
+ #{invoiceType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contractUpload != null">
|
|
|
+ #{contractUpload,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.jsh.erp.datasource.entities.SupplierExample" resultType="java.lang.Long">
|
|
@@ -382,6 +432,27 @@
|
|
|
<if test="record.deleteFlag != null">
|
|
|
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.supplierLevel != null">
|
|
|
+ supplier_level = #{record.supplierLevel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.settlementMethod != null">
|
|
|
+ settlement_method = #{record.settlementMethod,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.billingCycleDays != null">
|
|
|
+ billing_cycle_days = #{record.billingCycleDays,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.procurementContact != null">
|
|
|
+ procurement_contact = #{record.procurementContact,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.deliverydays != null">
|
|
|
+ delivery_days = #{record.deliverydays,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="record.invoiceType != null">
|
|
|
+ invoice_type = #{record.invoiceType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="record.contractUpload != null">
|
|
|
+ contract_upload = #{record.contractUpload,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -413,7 +484,14 @@
|
|
|
sort = #{record.sort,jdbcType=VARCHAR},
|
|
|
creator = #{record.creator,jdbcType=BIGINT},
|
|
|
tenant_id = #{record.tenantId,jdbcType=BIGINT},
|
|
|
- delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
|
|
|
+ delete_flag = #{record.deleteFlag,jdbcType=VARCHAR},
|
|
|
+ supplier_level = #{record.supplierLevel,jdbcType=VARCHAR},
|
|
|
+ settlement_method = #{record.settlementMethod,jdbcType=VARCHAR},
|
|
|
+ billing_cycle_days = #{record.billingCycleDays,jdbcType=INTEGER},
|
|
|
+ procurement_contact = #{record.procurementContact,jdbcType=VARCHAR},
|
|
|
+ delivery_days = #{record.deliverydays,jdbcType=INTEGER},
|
|
|
+ invoice_type = #{record.invoiceType,jdbcType=VARCHAR},
|
|
|
+ contract_upload = #{record.contractUpload,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -493,6 +571,27 @@
|
|
|
<if test="deleteFlag != null">
|
|
|
delete_flag = #{deleteFlag,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="supplierLevel != null">
|
|
|
+ supplier_level = #{supplierLevel,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="settlementMethod != null">
|
|
|
+ settlement_method = #{settlementMethod,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="billingCycleDays != null">
|
|
|
+ billing_cycle_days = #{billingCycleDays,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="procurementContact != null">
|
|
|
+ procurement_contact = #{procurementContact,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="deliverydays != null">
|
|
|
+ delivery_days = #{deliverydays,jdbcType=INTEGER},
|
|
|
+ </if>
|
|
|
+ <if test="invoiceType != null">
|
|
|
+ invoice_type = #{invoiceType,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="contractUpload != null">
|
|
|
+ contract_upload = #{contractUpload,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
@@ -521,7 +620,14 @@
|
|
|
sort = #{sort,jdbcType=VARCHAR},
|
|
|
creator = #{creator,jdbcType=BIGINT},
|
|
|
tenant_id = #{tenantId,jdbcType=BIGINT},
|
|
|
- delete_flag = #{deleteFlag,jdbcType=VARCHAR}
|
|
|
+ delete_flag = #{deleteFlag,jdbcType=VARCHAR},
|
|
|
+ supplier_level = #{supplierLevel,jdbcType=VARCHAR},
|
|
|
+ settlement_method = #{settlementMethod,jdbcType=VARCHAR},
|
|
|
+ billing_cycle_days = #{billingCycleDays,jdbcType=INTEGER},
|
|
|
+ procurement_contact = #{procurementContact,jdbcType=VARCHAR},
|
|
|
+ delivery_days = #{deliverydays,jdbcType=INTEGER},
|
|
|
+ invoice_type = #{invoiceType,jdbcType=VARCHAR},
|
|
|
+ contract_upload = #{contractUpload,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|