供应商管理数据同步, tms系统产品,服务渠道,产品渠道关系数据同步
This commit is contained in:
@@ -12,33 +12,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
INSERT INTO sup_supplier (
|
||||
supplier_code, supplier_name, is_enable, del_flag, create_by
|
||||
<if test="supplierType != null">, supplier_type</if>
|
||||
<if test="invoiceType != null">, invoice_type</if>
|
||||
<if test="kacheType != null">, kache_type</if>
|
||||
<if test="ed != null">, ed</if>
|
||||
<if test="zq != null">, zq</if>
|
||||
<if test="channelIds != null">, channel_ids</if>
|
||||
<if test="remark != null">, remark</if>
|
||||
<if test="createTime != null">, create_time</if>
|
||||
) VALUES (
|
||||
#{supplierCode}, #{supplierName}, #{isEnable}, '0', #{createBy}
|
||||
<if test="supplierType != null">, #{supplierType}</if>
|
||||
<if test="invoiceType != null">, #{invoiceType}</if>
|
||||
<if test="kacheType != null">, #{kacheType}</if>
|
||||
<if test="ed != null">, #{ed}</if>
|
||||
<if test="zq != null">, #{zq}</if>
|
||||
<if test="channelIds != null">, #{channelIds}</if>
|
||||
<if test="remark != null">, #{remark}</if>
|
||||
<if test="createTime != null">, #{createTime}</if>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<!-- 同步源(TAB_SERVICE_INFO/CHANNEL)无开票类型、卡车行类型、额度、账期,
|
||||
更新时这些列一律不动,保留库内维护值;supplier_type/channel_ids 以源为准 -->
|
||||
<update id="updateSyncSupplierByCode" parameterType="com.bms.customer.supplierinfo.domain.BmsSupplier">
|
||||
UPDATE sup_supplier
|
||||
SET supplier_name = #{supplierName}
|
||||
, is_enable = #{isEnable}
|
||||
, supplier_type = #{supplierType}
|
||||
, invoice_type = #{invoiceType}
|
||||
, kache_type = #{kacheType}
|
||||
<if test="ed != null">, ed = #{ed}</if>
|
||||
<if test="zq != null">, zq = #{zq}</if>
|
||||
, channel_ids = #{channelIds}
|
||||
<if test="remark != null">, remark = #{remark}</if>
|
||||
, update_by = #{updateBy}
|
||||
, update_time = #{updateTime}
|
||||
|
||||
Reference in New Issue
Block a user