基础信息
This commit is contained in:
152
ruoyi-admin/src/main/resources/mapper/bas/BasCustomerMapper.xml
Normal file
152
ruoyi-admin/src/main/resources/mapper/bas/BasCustomerMapper.xml
Normal file
@@ -0,0 +1,152 @@
|
||||
<?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.ruoyi.bas.BasCustomer.mapper.BasCustomerMapper">
|
||||
|
||||
<resultMap type="BasCustomer" id="BasCustomerResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="customerNo" column="customer_no" />
|
||||
<result property="customerGroupNo" column="customer_group_no" />
|
||||
<result property="customerName" column="customer_name" />
|
||||
<result property="simpleName" column="simple_name" />
|
||||
<result property="useable" column="useable" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="businessDepartment" column="business_department" />
|
||||
<result property="salesman" column="salesman" />
|
||||
<result property="mnemonicCode" column="mnemonic_code" />
|
||||
<result property="type" column="type" />
|
||||
<result property="taxpayerRegistrationNumber" column="taxpayer_registration_number" />
|
||||
<result property="organization" column="organization" />
|
||||
<result property="supCustomer" column="sup_customer" />
|
||||
<result property="retailInvestor" column="retail_investor" />
|
||||
<result property="country" column="country" />
|
||||
<result property="timeZone" column="time_zone" />
|
||||
<result property="dataFormat" column="data_format" />
|
||||
<result property="contactName" column="contact_name" />
|
||||
<result property="shipment" column="shipment" />
|
||||
<result property="taxCategory" column="tax_category" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBasCustomerVo">
|
||||
select id, customer_no, customer_group_no, customer_name, simple_name, useable, remark, business_department, salesman, mnemonic_code, type, taxpayer_registration_number, organization, sup_customer, retail_investor, country, time_zone, data_format, contact_name, shipment, tax_category from bas_customer
|
||||
</sql>
|
||||
|
||||
<select id="selectBasCustomerList" parameterType="BasCustomer" resultMap="BasCustomerResult">
|
||||
<include refid="selectBasCustomerVo"/>
|
||||
<where>
|
||||
<if test="customerNo != null and customerNo != ''"> and customer_no like concat('%', #{customerNo}, '%')</if>
|
||||
<if test="customerGroupNo != null and customerGroupNo != ''"> and customer_group_no like concat('%', #{customerGroupNo}, '%')</if>
|
||||
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
|
||||
<if test="simpleName != null and simpleName != ''"> and simple_name like concat('%', #{simpleName}, '%')</if>
|
||||
<if test="useable != null and useable != ''"> and useable = #{useable}</if>
|
||||
<if test="businessDepartment != null and businessDepartment != ''"> and business_department like concat('%', #{businessDepartment}, '%')</if>
|
||||
<if test="salesman != null and salesman != ''"> and salesman like concat('%', #{salesman}, '%')</if>
|
||||
<if test="mnemonicCode != null and mnemonicCode != ''"> and mnemonic_code like concat('%', #{mnemonicCode}, '%')</if>
|
||||
<if test="type != null and type != ''"> and type like concat('%', #{type}, '%')</if>
|
||||
<if test="taxpayerRegistrationNumber != null and taxpayerRegistrationNumber != ''"> and taxpayer_registration_number like concat('%', #{taxpayerRegistrationNumber}, '%')</if>
|
||||
<if test="organization != null and organization != ''"> and organization like concat('%', #{organization}, '%')</if>
|
||||
<if test="supCustomer != null and supCustomer != ''"> and sup_customer like concat('%', #{supCustomer}, '%')</if>
|
||||
<if test="retailInvestor != null and retailInvestor != ''"> and retail_investor like concat('%', #{retailInvestor}, '%')</if>
|
||||
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
|
||||
<if test="timeZone != null and timeZone != ''"> and time_zone like concat('%', #{timeZone}, '%')</if>
|
||||
<if test="dataFormat != null and dataFormat != ''"> and data_format like concat('%', #{dataFormat}, '%')</if>
|
||||
<if test="contactName != null and contactName != ''"> and contact_name like concat('%', #{contactName}, '%')</if>
|
||||
<if test="shipment != null and shipment != ''"> and shipment like concat('%', #{shipment}, '%')</if>
|
||||
<if test="taxCategory != null and taxCategory != ''"> and tax_category like concat('%', #{taxCategory}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBasCustomerById" parameterType="String" resultMap="BasCustomerResult">
|
||||
<include refid="selectBasCustomerVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertBasCustomer" parameterType="BasCustomer">
|
||||
insert into bas_customer
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id,</if>
|
||||
<if test="customerNo != null and customerNo != ''">customer_no,</if>
|
||||
<if test="customerGroupNo != null">customer_group_no,</if>
|
||||
<if test="customerName != null">customer_name,</if>
|
||||
<if test="simpleName != null">simple_name,</if>
|
||||
<if test="useable != null">useable,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="businessDepartment != null">business_department,</if>
|
||||
<if test="salesman != null">salesman,</if>
|
||||
<if test="mnemonicCode != null">mnemonic_code,</if>
|
||||
<if test="type != null">type,</if>
|
||||
<if test="taxpayerRegistrationNumber != null">taxpayer_registration_number,</if>
|
||||
<if test="organization != null">organization,</if>
|
||||
<if test="supCustomer != null">sup_customer,</if>
|
||||
<if test="retailInvestor != null">retail_investor,</if>
|
||||
<if test="country != null">country,</if>
|
||||
<if test="timeZone != null">time_zone,</if>
|
||||
<if test="dataFormat != null">data_format,</if>
|
||||
<if test="contactName != null">contact_name,</if>
|
||||
<if test="shipment != null">shipment,</if>
|
||||
<if test="taxCategory != null">tax_category,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id},</if>
|
||||
<if test="customerNo != null and customerNo != ''">#{customerNo},</if>
|
||||
<if test="customerGroupNo != null">#{customerGroupNo},</if>
|
||||
<if test="customerName != null">#{customerName},</if>
|
||||
<if test="simpleName != null">#{simpleName},</if>
|
||||
<if test="useable != null">#{useable},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="businessDepartment != null">#{businessDepartment},</if>
|
||||
<if test="salesman != null">#{salesman},</if>
|
||||
<if test="mnemonicCode != null">#{mnemonicCode},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="taxpayerRegistrationNumber != null">#{taxpayerRegistrationNumber},</if>
|
||||
<if test="organization != null">#{organization},</if>
|
||||
<if test="supCustomer != null">#{supCustomer},</if>
|
||||
<if test="retailInvestor != null">#{retailInvestor},</if>
|
||||
<if test="country != null">#{country},</if>
|
||||
<if test="timeZone != null">#{timeZone},</if>
|
||||
<if test="dataFormat != null">#{dataFormat},</if>
|
||||
<if test="contactName != null">#{contactName},</if>
|
||||
<if test="shipment != null">#{shipment},</if>
|
||||
<if test="taxCategory != null">#{taxCategory},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBasCustomer" parameterType="BasCustomer">
|
||||
update bas_customer
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="customerNo != null and customerNo != ''">customer_no = #{customerNo},</if>
|
||||
<if test="customerGroupNo != null">customer_group_no = #{customerGroupNo},</if>
|
||||
<if test="customerName != null">customer_name = #{customerName},</if>
|
||||
<if test="simpleName != null">simple_name = #{simpleName},</if>
|
||||
<if test="useable != null">useable = #{useable},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="businessDepartment != null">business_department = #{businessDepartment},</if>
|
||||
<if test="salesman != null">salesman = #{salesman},</if>
|
||||
<if test="mnemonicCode != null">mnemonic_code = #{mnemonicCode},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
<if test="taxpayerRegistrationNumber != null">taxpayer_registration_number = #{taxpayerRegistrationNumber},</if>
|
||||
<if test="organization != null">organization = #{organization},</if>
|
||||
<if test="supCustomer != null">sup_customer = #{supCustomer},</if>
|
||||
<if test="retailInvestor != null">retail_investor = #{retailInvestor},</if>
|
||||
<if test="country != null">country = #{country},</if>
|
||||
<if test="timeZone != null">time_zone = #{timeZone},</if>
|
||||
<if test="dataFormat != null">data_format = #{dataFormat},</if>
|
||||
<if test="contactName != null">contact_name = #{contactName},</if>
|
||||
<if test="shipment != null">shipment = #{shipment},</if>
|
||||
<if test="taxCategory != null">tax_category = #{taxCategory},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBasCustomerById" parameterType="String">
|
||||
delete from bas_customer where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBasCustomerByIds" parameterType="String">
|
||||
delete from bas_customer where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
123
ruoyi-admin/src/main/resources/mapper/bas/BasProductMapper.xml
Normal file
123
ruoyi-admin/src/main/resources/mapper/bas/BasProductMapper.xml
Normal file
@@ -0,0 +1,123 @@
|
||||
<?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.ruoyi.bas.BasProduct.mapper.BasProductMapper">
|
||||
|
||||
<resultMap type="BasProduct" id="BasProductResult">
|
||||
<result property="productGuid" column="product_guid" />
|
||||
<result property="productId" column="product_id" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="price" column="price" />
|
||||
<result property="cargoNo" column="cargo_no" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="spec" column="spec" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="spare1" column="spare1" />
|
||||
<result property="spare2" column="spare2" />
|
||||
<result property="spare3" column="spare3" />
|
||||
<result property="spare4" column="spare4" />
|
||||
<result property="spare5" column="spare5" />
|
||||
<result property="spare6" column="spare6" />
|
||||
<result property="productName" column="product_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBasProductVo">
|
||||
select product_guid, product_id, parent_id, price, cargo_no, unit, spec, remark, spare1, spare2, spare3, spare4, spare5, spare6, product_name from bas_product
|
||||
</sql>
|
||||
|
||||
<select id="selectBasProductList" parameterType="BasProduct" resultMap="BasProductResult">
|
||||
<include refid="selectBasProductVo"/>
|
||||
<where>
|
||||
<if test="productId != null and productId != ''"> and product_id like concat('%', #{productId}, '%')</if>
|
||||
<if test="parentId != null and parentId != ''"> and parent_id like concat('%', #{parentId}, '%')</if>
|
||||
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||
<if test="cargoNo != null and cargoNo != ''"> and cargo_no like concat('%', #{cargoNo}, '%')</if>
|
||||
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||
<if test="spec != null and spec != ''"> and spec like concat('%', #{spec}, '%')</if>
|
||||
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||
<if test="spare1 != null and spare1 != ''"> and spare1 like concat('%', #{spare1}, '%')</if>
|
||||
<if test="spare2 != null and spare2 != ''"> and spare2 like concat('%', #{spare2}, '%')</if>
|
||||
<if test="spare3 != null and spare3 != ''"> and spare3 like concat('%', #{spare3}, '%')</if>
|
||||
<if test="spare4 != null and spare4 != ''"> and spare4 like concat('%', #{spare4}, '%')</if>
|
||||
<if test="spare5 != null and spare5 != ''"> and spare5 like concat('%', #{spare5}, '%')</if>
|
||||
<if test="spare6 != null and spare6 != ''"> and spare6 like concat('%', #{spare6}, '%')</if>
|
||||
<if test="productName != null and productName != ''"> and product_name like concat('%', #{productName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBasProductByProductGuid" parameterType="String" resultMap="BasProductResult">
|
||||
<include refid="selectBasProductVo"/>
|
||||
where product_guid = #{productGuid}
|
||||
</select>
|
||||
|
||||
<insert id="insertBasProduct" parameterType="BasProduct">
|
||||
insert into bas_product
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="productGuid != null">product_guid,</if>
|
||||
<if test="productId != null and productId != ''">product_id,</if>
|
||||
<if test="parentId != null and parentId != ''">parent_id,</if>
|
||||
<if test="price != null">price,</if>
|
||||
<if test="cargoNo != null">cargo_no,</if>
|
||||
<if test="unit != null">unit,</if>
|
||||
<if test="spec != null">spec,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="spare1 != null">spare1,</if>
|
||||
<if test="spare2 != null">spare2,</if>
|
||||
<if test="spare3 != null">spare3,</if>
|
||||
<if test="spare4 != null">spare4,</if>
|
||||
<if test="spare5 != null">spare5,</if>
|
||||
<if test="spare6 != null">spare6,</if>
|
||||
<if test="productName != null and productName != ''">product_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="productGuid != null">#{productGuid},</if>
|
||||
<if test="productId != null and productId != ''">#{productId},</if>
|
||||
<if test="parentId != null and parentId != ''">#{parentId},</if>
|
||||
<if test="price != null">#{price},</if>
|
||||
<if test="cargoNo != null">#{cargoNo},</if>
|
||||
<if test="unit != null">#{unit},</if>
|
||||
<if test="spec != null">#{spec},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="spare1 != null">#{spare1},</if>
|
||||
<if test="spare2 != null">#{spare2},</if>
|
||||
<if test="spare3 != null">#{spare3},</if>
|
||||
<if test="spare4 != null">#{spare4},</if>
|
||||
<if test="spare5 != null">#{spare5},</if>
|
||||
<if test="spare6 != null">#{spare6},</if>
|
||||
<if test="productName != null and productName != ''">#{productName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBasProduct" parameterType="BasProduct">
|
||||
update bas_product
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="productId != null and productId != ''">product_id = #{productId},</if>
|
||||
<if test="parentId != null and parentId != ''">parent_id = #{parentId},</if>
|
||||
<if test="price != null">price = #{price},</if>
|
||||
<if test="cargoNo != null">cargo_no = #{cargoNo},</if>
|
||||
<if test="unit != null">unit = #{unit},</if>
|
||||
<if test="spec != null">spec = #{spec},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="spare1 != null">spare1 = #{spare1},</if>
|
||||
<if test="spare2 != null">spare2 = #{spare2},</if>
|
||||
<if test="spare3 != null">spare3 = #{spare3},</if>
|
||||
<if test="spare4 != null">spare4 = #{spare4},</if>
|
||||
<if test="spare5 != null">spare5 = #{spare5},</if>
|
||||
<if test="spare6 != null">spare6 = #{spare6},</if>
|
||||
<if test="productName != null and productName != ''">product_name = #{productName},</if>
|
||||
</trim>
|
||||
where product_guid = #{productGuid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBasProductByProductGuid" parameterType="String">
|
||||
delete from bas_product where product_guid = #{productGuid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBasProductByProductGuids" parameterType="String">
|
||||
delete from bas_product where product_guid in
|
||||
<foreach item="productGuid" collection="array" open="(" separator="," close=")">
|
||||
#{productGuid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
142
ruoyi-admin/src/main/resources/mapper/bas/BasSupplierMapper.xml
Normal file
142
ruoyi-admin/src/main/resources/mapper/bas/BasSupplierMapper.xml
Normal file
@@ -0,0 +1,142 @@
|
||||
<?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.ruoyi.bas.BasSupplier.mapper.BasSupplierMapper">
|
||||
|
||||
<resultMap type="BasSupplier" id="BasSupplierResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="supplierNo" column="supplier_no" />
|
||||
<result property="supplierGroupNo" column="supplier_group_no" />
|
||||
<result property="supplierName" column="supplier_name" />
|
||||
<result property="simpleName" column="simple_name" />
|
||||
<result property="useable" column="useable" />
|
||||
<result property="remark" column="remark" />
|
||||
<result property="supplierArae" column="supplier_arae" />
|
||||
<result property="taxpayerRegistrationNumber" column="taxpayer_registration_number" />
|
||||
<result property="country" column="country" />
|
||||
<result property="timeZone" column="time_zone" />
|
||||
<result property="dataFormat" column="data_format" />
|
||||
<result property="receivingCountry" column="receiving_country" />
|
||||
<result property="taxCategory" column="tax_category" />
|
||||
<result property="legalPerson" column="legal_person" />
|
||||
<result property="registeredCapital" column="registered_capital" />
|
||||
<result property="address" column="address" />
|
||||
<result property="contactName" column="contact_name" />
|
||||
<result property="contactNumber" column="contact_number" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectBasSupplierVo">
|
||||
select id, supplier_no, supplier_group_no, supplier_name, simple_name, useable, remark, supplier_arae, taxpayer_registration_number, country, time_zone, data_format, receiving_country, tax_category, legal_person, registered_capital, address, contact_name, contact_number from bas_supplier
|
||||
</sql>
|
||||
|
||||
<select id="selectBasSupplierList" parameterType="BasSupplier" resultMap="BasSupplierResult">
|
||||
<include refid="selectBasSupplierVo"/>
|
||||
<where>
|
||||
<if test="supplierNo != null and supplierNo != ''"> and supplier_no like concat('%', #{supplierNo}, '%')</if>
|
||||
<if test="supplierGroupNo != null and supplierGroupNo != ''"> and supplier_group_no like concat('%', #{supplierGroupNo}, '%')</if>
|
||||
<if test="supplierName != null and supplierName != ''"> and supplier_name like concat('%', #{supplierName}, '%')</if>
|
||||
<if test="simpleName != null and simpleName != ''"> and simple_name like concat('%', #{simpleName}, '%')</if>
|
||||
<if test="useable != null and useable != ''"> and useable = #{useable}</if>
|
||||
<if test="supplierArae != null and supplierArae != ''"> and supplier_arae like concat('%', #{supplierArae}, '%')</if>
|
||||
<if test="taxpayerRegistrationNumber != null and taxpayerRegistrationNumber != ''"> and taxpayer_registration_number like concat('%', #{taxpayerRegistrationNumber}, '%')</if>
|
||||
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
|
||||
<if test="timeZone != null and timeZone != ''"> and time_zone like concat('%', #{timeZone}, '%')</if>
|
||||
<if test="dataFormat != null and dataFormat != ''"> and data_format like concat('%', #{dataFormat}, '%')</if>
|
||||
<if test="receivingCountry != null and receivingCountry != ''"> and receiving_country like concat('%', #{receivingCountry}, '%')</if>
|
||||
<if test="taxCategory != null and taxCategory != ''"> and tax_category like concat('%', #{taxCategory}, '%')</if>
|
||||
<if test="legalPerson != null and legalPerson != ''"> and legal_person like concat('%', #{legalPerson}, '%')</if>
|
||||
<if test="registeredCapital != null and registeredCapital != ''"> and registered_capital like concat('%', #{registeredCapital}, '%')</if>
|
||||
<if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
|
||||
<if test="contactName != null and contactName != ''"> and contact_name like concat('%', #{contactName}, '%')</if>
|
||||
<if test="contactNumber != null and contactNumber != ''"> and contact_number = like concat('%',#{contactNumber}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectBasSupplierById" parameterType="String" resultMap="BasSupplierResult">
|
||||
<include refid="selectBasSupplierVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertBasSupplier" parameterType="BasSupplier">
|
||||
insert into bas_supplier
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id,</if>
|
||||
<if test="supplierNo != null">supplier_no,</if>
|
||||
<if test="supplierGroupNo != null">supplier_group_no,</if>
|
||||
<if test="supplierName != null">supplier_name,</if>
|
||||
<if test="simpleName != null">simple_name,</if>
|
||||
<if test="useable != null and useable != ''">useable,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
<if test="supplierArae != null">supplier_arae,</if>
|
||||
<if test="taxpayerRegistrationNumber != null">taxpayer_registration_number,</if>
|
||||
<if test="country != null">country,</if>
|
||||
<if test="timeZone != null">time_zone,</if>
|
||||
<if test="dataFormat != null">data_format,</if>
|
||||
<if test="receivingCountry != null">receiving_country,</if>
|
||||
<if test="taxCategory != null">tax_category,</if>
|
||||
<if test="legalPerson != null">legal_person,</if>
|
||||
<if test="registeredCapital != null">registered_capital,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="contactName != null">contact_name,</if>
|
||||
<if test="contactNumber != null">contact_number,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id},</if>
|
||||
<if test="supplierNo != null">#{supplierNo},</if>
|
||||
<if test="supplierGroupNo != null">#{supplierGroupNo},</if>
|
||||
<if test="supplierName != null">#{supplierName},</if>
|
||||
<if test="simpleName != null">#{simpleName},</if>
|
||||
<if test="useable != null and useable != ''">#{useable},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="supplierArae != null">#{supplierArae},</if>
|
||||
<if test="taxpayerRegistrationNumber != null">#{taxpayerRegistrationNumber},</if>
|
||||
<if test="country != null">#{country},</if>
|
||||
<if test="timeZone != null">#{timeZone},</if>
|
||||
<if test="dataFormat != null">#{dataFormat},</if>
|
||||
<if test="receivingCountry != null">#{receivingCountry},</if>
|
||||
<if test="taxCategory != null">#{taxCategory},</if>
|
||||
<if test="legalPerson != null">#{legalPerson},</if>
|
||||
<if test="registeredCapital != null">#{registeredCapital},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="contactName != null">#{contactName},</if>
|
||||
<if test="contactNumber != null">#{contactNumber},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateBasSupplier" parameterType="BasSupplier">
|
||||
update bas_supplier
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="supplierNo != null">supplier_no = #{supplierNo},</if>
|
||||
<if test="supplierGroupNo != null">supplier_group_no = #{supplierGroupNo},</if>
|
||||
<if test="supplierName != null">supplier_name = #{supplierName},</if>
|
||||
<if test="simpleName != null">simple_name = #{simpleName},</if>
|
||||
<if test="useable != null and useable != ''">useable = #{useable},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
<if test="supplierArae != null">supplier_arae = #{supplierArae},</if>
|
||||
<if test="taxpayerRegistrationNumber != null">taxpayer_registration_number = #{taxpayerRegistrationNumber},</if>
|
||||
<if test="country != null">country = #{country},</if>
|
||||
<if test="timeZone != null">time_zone = #{timeZone},</if>
|
||||
<if test="dataFormat != null">data_format = #{dataFormat},</if>
|
||||
<if test="receivingCountry != null">receiving_country = #{receivingCountry},</if>
|
||||
<if test="taxCategory != null">tax_category = #{taxCategory},</if>
|
||||
<if test="legalPerson != null">legal_person = #{legalPerson},</if>
|
||||
<if test="registeredCapital != null">registered_capital = #{registeredCapital},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="contactName != null">contact_name = #{contactName},</if>
|
||||
<if test="contactNumber != null">contact_number = #{contactNumber},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteBasSupplierById" parameterType="String">
|
||||
delete from bas_supplier where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteBasSupplierByIds" parameterType="String">
|
||||
delete from bas_supplier where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user