|
@@ -57,7 +57,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="operatingReceipt" column="operating_receipt" />
|
|
|
<result property="salesTax" column="sales_tax" />
|
|
|
<result property="salesTotal" column="sales_total" />
|
|
|
- <result property="income tax" column="income tax" />
|
|
|
+ <result property="incomeTax" column="income_tax" />
|
|
|
<result property="profitTotal" column="profit_total" />
|
|
|
<result property="salesProfitTotal" column="sales_profit_total" />
|
|
|
<result property="headerName" column="header_name" />
|
|
@@ -81,7 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSupplierInfoVo">
|
|
|
- select id, zs_id, supplier_name, supplier_re_name, address, detail_address, logo, business_address, post_code, website, supplier_phone, fax, supplier_man, man_phone, supplier_nature, supplier_business, supplier_scale, supplier_type, is_market, is_brand, supplier_desc, supplier_code, registration, establishment_date, from_date, to_date, is_valid, capital, currency, business_scope, business_scan_file, remark, employee_num, social_num, social_file, contribut_prove, contribut_num, contribut_currency, contribut_list, financial_annual_list, financial_is_accountant, financial_remark, financial_file, asset_total, debt_invest_total, debt_equity_total, debt_total, capital_total, debt_rate, operating_receipt, sales_tax, sales_total, income tax, profit_total, sales_profit_total, header_name, type, job_type, papers_type, papers_number, head_phone, header_phone, header_mail, header_address, header_post_code, pros_picture, cons_picture, status, refuse_msg, sold_out_msg, putaway_time, start_time, end_time from supplier_info
|
|
|
+ select id, zs_id, supplier_name, supplier_re_name, address, detail_address, logo, business_address, post_code, website, supplier_phone, fax, supplier_man, man_phone, supplier_nature, supplier_business, supplier_scale, supplier_type, is_market, is_brand, supplier_desc, supplier_code, registration, establishment_date, from_date, to_date, is_valid, capital, currency, business_scope, business_scan_file, remark, employee_num, social_num, social_file, contribut_prove, contribut_num, contribut_currency, contribut_list, financial_annual_list, financial_is_accountant, financial_remark, financial_file, asset_total, debt_invest_total, debt_equity_total, debt_total, capital_total, debt_rate, operating_receipt, sales_tax, sales_total, income_tax, profit_total, sales_profit_total, header_name, type, job_type, papers_type, papers_number, head_phone, header_phone, header_mail, header_address, header_post_code, pros_picture, cons_picture, status, refuse_msg, sold_out_msg, putaway_time, start_time, end_time from supplier_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectSupplierInfoList" parameterType="SupplierInfo" resultMap="SupplierInfoResult">
|
|
@@ -137,7 +137,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="operatingReceipt != null and operatingReceipt != ''"> and operating_receipt = #{operatingReceipt}</if>
|
|
|
<if test="salesTax != null and salesTax != ''"> and sales_tax = #{salesTax}</if>
|
|
|
<if test="salesTotal != null and salesTotal != ''"> and sales_total = #{salesTotal}</if>
|
|
|
- <if test="income tax != null and income tax != ''"> and income tax = #{income tax}</if>
|
|
|
+ <if test="incomeTax != null and incomeTax != ''"> and income_tax = #{incomeTax}</if>
|
|
|
<if test="profitTotal != null and profitTotal != ''"> and profit_total = #{profitTotal}</if>
|
|
|
<if test="salesProfitTotal != null and salesProfitTotal != ''"> and sales_profit_total = #{salesProfitTotal}</if>
|
|
|
<if test="headerName != null and headerName != ''"> and header_name like concat('%', #{headerName}, '%')</if>
|
|
@@ -170,26 +170,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
insert into supplier_info
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null and id != ''">id,</if>
|
|
|
- <if test="zsId != null">zs_id,</if>
|
|
|
+ <if test="zsId != null and zsId != ''">zs_id,</if>
|
|
|
<if test="supplierName != null and supplierName != ''">supplier_name,</if>
|
|
|
<if test="supplierReName != null and supplierReName != ''">supplier_re_name,</if>
|
|
|
- <if test="address != null">address,</if>
|
|
|
- <if test="detailAddress != null">detail_address,</if>
|
|
|
- <if test="logo != null">logo,</if>
|
|
|
- <if test="businessAddress != null">business_address,</if>
|
|
|
- <if test="postCode != null">post_code,</if>
|
|
|
- <if test="website != null">website,</if>
|
|
|
- <if test="supplierPhone != null">supplier_phone,</if>
|
|
|
- <if test="fax != null">fax,</if>
|
|
|
- <if test="supplierMan != null">supplier_man,</if>
|
|
|
- <if test="manPhone != null">man_phone,</if>
|
|
|
- <if test="supplierNature != null">supplier_nature,</if>
|
|
|
- <if test="supplierBusiness != null">supplier_business,</if>
|
|
|
- <if test="supplierScale != null">supplier_scale,</if>
|
|
|
- <if test="supplierType != null">supplier_type,</if>
|
|
|
- <if test="isMarket != null">is_market,</if>
|
|
|
- <if test="isBrand != null">is_brand,</if>
|
|
|
- <if test="supplierDesc != null">supplier_desc,</if>
|
|
|
+ <if test="address != null and address != ''">address,</if>
|
|
|
+ <if test="detailAddress != null and detailAddress != ''">detail_address,</if>
|
|
|
+ <if test="logo != null and logo != ''">logo,</if>
|
|
|
+ <if test="businessAddress != null and businessAddress != ''">business_address,</if>
|
|
|
+ <if test="postCode != null and postCode != ''">post_code,</if>
|
|
|
+ <if test="website != null and website != ''">website,</if>
|
|
|
+ <if test="supplierPhone != null and supplierPhone != ''">supplier_phone,</if>
|
|
|
+ <if test="fax != null and fax != ''">fax,</if>
|
|
|
+ <if test="supplierMan != null and supplierMan != ''">supplier_man,</if>
|
|
|
+ <if test="manPhone != null and manPhone != ''">man_phone,</if>
|
|
|
+ <if test="supplierNature != null and supplierNature != ''">supplier_nature,</if>
|
|
|
+ <if test="supplierBusiness != null and supplierBusiness != ''">supplier_business,</if>
|
|
|
+ <if test="supplierScale != null and supplierScale != ''">supplier_scale,</if>
|
|
|
+ <if test="supplierType != null and supplierType != ''">supplier_type,</if>
|
|
|
+ <if test="isMarket != null and isMarket != ''">is_market,</if>
|
|
|
+ <if test="isBrand != null and isBrand != ''">is_brand,</if>
|
|
|
+ <if test="supplierDesc != null and supplierDesc != ''">supplier_desc,</if>
|
|
|
<if test="supplierCode != null">supplier_code,</if>
|
|
|
<if test="registration != null">registration,</if>
|
|
|
<if test="establishmentDate != null">establishment_date,</if>
|
|
@@ -221,7 +221,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="operatingReceipt != null">operating_receipt,</if>
|
|
|
<if test="salesTax != null">sales_tax,</if>
|
|
|
<if test="salesTotal != null">sales_total,</if>
|
|
|
- <if test="income tax != null">income tax,</if>
|
|
|
+ <if test="incomeTax != null">income_tax,</if>
|
|
|
<if test="profitTotal != null">profit_total,</if>
|
|
|
<if test="salesProfitTotal != null">sales_profit_total,</if>
|
|
|
<if test="headerName != null">header_name,</if>
|
|
@@ -236,7 +236,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="headerPostCode != null">header_post_code,</if>
|
|
|
<if test="prosPicture != null">pros_picture,</if>
|
|
|
<if test="consPicture != null">cons_picture,</if>
|
|
|
- <if test="status != null">status,</if>
|
|
|
+ <if test="status != null and status != ''">status,</if>
|
|
|
<if test="refuseMsg != null">refuse_msg,</if>
|
|
|
<if test="soldOutMsg != null">sold_out_msg,</if>
|
|
|
<if test="putawayTime != null">putaway_time,</if>
|
|
@@ -245,26 +245,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null and id != ''">#{id},</if>
|
|
|
- <if test="zsId != null">#{zsId},</if>
|
|
|
+ <if test="zsId != null and zsId != ''">#{zsId},</if>
|
|
|
<if test="supplierName != null and supplierName != ''">#{supplierName},</if>
|
|
|
<if test="supplierReName != null and supplierReName != ''">#{supplierReName},</if>
|
|
|
- <if test="address != null">#{address},</if>
|
|
|
- <if test="detailAddress != null">#{detailAddress},</if>
|
|
|
- <if test="logo != null">#{logo},</if>
|
|
|
- <if test="businessAddress != null">#{businessAddress},</if>
|
|
|
- <if test="postCode != null">#{postCode},</if>
|
|
|
- <if test="website != null">#{website},</if>
|
|
|
- <if test="supplierPhone != null">#{supplierPhone},</if>
|
|
|
- <if test="fax != null">#{fax},</if>
|
|
|
- <if test="supplierMan != null">#{supplierMan},</if>
|
|
|
- <if test="manPhone != null">#{manPhone},</if>
|
|
|
- <if test="supplierNature != null">#{supplierNature},</if>
|
|
|
- <if test="supplierBusiness != null">#{supplierBusiness},</if>
|
|
|
- <if test="supplierScale != null">#{supplierScale},</if>
|
|
|
- <if test="supplierType != null">#{supplierType},</if>
|
|
|
- <if test="isMarket != null">#{isMarket},</if>
|
|
|
- <if test="isBrand != null">#{isBrand},</if>
|
|
|
- <if test="supplierDesc != null">#{supplierDesc},</if>
|
|
|
+ <if test="address != null and address != ''">#{address},</if>
|
|
|
+ <if test="detailAddress != null and detailAddress != ''">#{detailAddress},</if>
|
|
|
+ <if test="logo != null and logo != ''">#{logo},</if>
|
|
|
+ <if test="businessAddress != null and businessAddress != ''">#{businessAddress},</if>
|
|
|
+ <if test="postCode != null and postCode != ''">#{postCode},</if>
|
|
|
+ <if test="website != null and website != ''">#{website},</if>
|
|
|
+ <if test="supplierPhone != null and supplierPhone != ''">#{supplierPhone},</if>
|
|
|
+ <if test="fax != null and fax != ''">#{fax},</if>
|
|
|
+ <if test="supplierMan != null and supplierMan != ''">#{supplierMan},</if>
|
|
|
+ <if test="manPhone != null and manPhone != ''">#{manPhone},</if>
|
|
|
+ <if test="supplierNature != null and supplierNature != ''">#{supplierNature},</if>
|
|
|
+ <if test="supplierBusiness != null and supplierBusiness != ''">#{supplierBusiness},</if>
|
|
|
+ <if test="supplierScale != null and supplierScale != ''">#{supplierScale},</if>
|
|
|
+ <if test="supplierType != null and supplierType != ''">#{supplierType},</if>
|
|
|
+ <if test="isMarket != null and isMarket != ''">#{isMarket},</if>
|
|
|
+ <if test="isBrand != null and isBrand != ''">#{isBrand},</if>
|
|
|
+ <if test="supplierDesc != null and supplierDesc != ''">#{supplierDesc},</if>
|
|
|
<if test="supplierCode != null">#{supplierCode},</if>
|
|
|
<if test="registration != null">#{registration},</if>
|
|
|
<if test="establishmentDate != null">#{establishmentDate},</if>
|
|
@@ -296,7 +296,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="operatingReceipt != null">#{operatingReceipt},</if>
|
|
|
<if test="salesTax != null">#{salesTax},</if>
|
|
|
<if test="salesTotal != null">#{salesTotal},</if>
|
|
|
- <if test="income tax != null">#{income tax},</if>
|
|
|
+ <if test="incomeTax != null">#{incomeTax},</if>
|
|
|
<if test="profitTotal != null">#{profitTotal},</if>
|
|
|
<if test="salesProfitTotal != null">#{salesProfitTotal},</if>
|
|
|
<if test="headerName != null">#{headerName},</if>
|
|
@@ -311,7 +311,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="headerPostCode != null">#{headerPostCode},</if>
|
|
|
<if test="prosPicture != null">#{prosPicture},</if>
|
|
|
<if test="consPicture != null">#{consPicture},</if>
|
|
|
- <if test="status != null">#{status},</if>
|
|
|
+ <if test="status != null and status != ''">#{status},</if>
|
|
|
<if test="refuseMsg != null">#{refuseMsg},</if>
|
|
|
<if test="soldOutMsg != null">#{soldOutMsg},</if>
|
|
|
<if test="putawayTime != null">#{putawayTime},</if>
|
|
@@ -323,26 +323,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateSupplierInfo" parameterType="SupplierInfo">
|
|
|
update supplier_info
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="zsId != null">zs_id = #{zsId},</if>
|
|
|
+ <if test="zsId != null and zsId != ''">zs_id = #{zsId},</if>
|
|
|
<if test="supplierName != null and supplierName != ''">supplier_name = #{supplierName},</if>
|
|
|
<if test="supplierReName != null and supplierReName != ''">supplier_re_name = #{supplierReName},</if>
|
|
|
- <if test="address != null">address = #{address},</if>
|
|
|
- <if test="detailAddress != null">detail_address = #{detailAddress},</if>
|
|
|
- <if test="logo != null">logo = #{logo},</if>
|
|
|
- <if test="businessAddress != null">business_address = #{businessAddress},</if>
|
|
|
- <if test="postCode != null">post_code = #{postCode},</if>
|
|
|
- <if test="website != null">website = #{website},</if>
|
|
|
- <if test="supplierPhone != null">supplier_phone = #{supplierPhone},</if>
|
|
|
- <if test="fax != null">fax = #{fax},</if>
|
|
|
- <if test="supplierMan != null">supplier_man = #{supplierMan},</if>
|
|
|
- <if test="manPhone != null">man_phone = #{manPhone},</if>
|
|
|
- <if test="supplierNature != null">supplier_nature = #{supplierNature},</if>
|
|
|
- <if test="supplierBusiness != null">supplier_business = #{supplierBusiness},</if>
|
|
|
- <if test="supplierScale != null">supplier_scale = #{supplierScale},</if>
|
|
|
- <if test="supplierType != null">supplier_type = #{supplierType},</if>
|
|
|
- <if test="isMarket != null">is_market = #{isMarket},</if>
|
|
|
- <if test="isBrand != null">is_brand = #{isBrand},</if>
|
|
|
- <if test="supplierDesc != null">supplier_desc = #{supplierDesc},</if>
|
|
|
+ <if test="address != null and address != ''">address = #{address},</if>
|
|
|
+ <if test="detailAddress != null and detailAddress != ''">detail_address = #{detailAddress},</if>
|
|
|
+ <if test="logo != null and logo != ''">logo = #{logo},</if>
|
|
|
+ <if test="businessAddress != null and businessAddress != ''">business_address = #{businessAddress},</if>
|
|
|
+ <if test="postCode != null and postCode != ''">post_code = #{postCode},</if>
|
|
|
+ <if test="website != null and website != ''">website = #{website},</if>
|
|
|
+ <if test="supplierPhone != null and supplierPhone != ''">supplier_phone = #{supplierPhone},</if>
|
|
|
+ <if test="fax != null and fax != ''">fax = #{fax},</if>
|
|
|
+ <if test="supplierMan != null and supplierMan != ''">supplier_man = #{supplierMan},</if>
|
|
|
+ <if test="manPhone != null and manPhone != ''">man_phone = #{manPhone},</if>
|
|
|
+ <if test="supplierNature != null and supplierNature != ''">supplier_nature = #{supplierNature},</if>
|
|
|
+ <if test="supplierBusiness != null and supplierBusiness != ''">supplier_business = #{supplierBusiness},</if>
|
|
|
+ <if test="supplierScale != null and supplierScale != ''">supplier_scale = #{supplierScale},</if>
|
|
|
+ <if test="supplierType != null and supplierType != ''">supplier_type = #{supplierType},</if>
|
|
|
+ <if test="isMarket != null and isMarket != ''">is_market = #{isMarket},</if>
|
|
|
+ <if test="isBrand != null and isBrand != ''">is_brand = #{isBrand},</if>
|
|
|
+ <if test="supplierDesc != null and supplierDesc != ''">supplier_desc = #{supplierDesc},</if>
|
|
|
<if test="supplierCode != null">supplier_code = #{supplierCode},</if>
|
|
|
<if test="registration != null">registration = #{registration},</if>
|
|
|
<if test="establishmentDate != null">establishment_date = #{establishmentDate},</if>
|
|
@@ -374,7 +374,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="operatingReceipt != null">operating_receipt = #{operatingReceipt},</if>
|
|
|
<if test="salesTax != null">sales_tax = #{salesTax},</if>
|
|
|
<if test="salesTotal != null">sales_total = #{salesTotal},</if>
|
|
|
- <if test="income tax != null">income tax = #{income tax},</if>
|
|
|
+ <if test="incomeTax != null">income_tax = #{incomeTax},</if>
|
|
|
<if test="profitTotal != null">profit_total = #{profitTotal},</if>
|
|
|
<if test="salesProfitTotal != null">sales_profit_total = #{salesProfitTotal},</if>
|
|
|
<if test="headerName != null">header_name = #{headerName},</if>
|
|
@@ -389,7 +389,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="headerPostCode != null">header_post_code = #{headerPostCode},</if>
|
|
|
<if test="prosPicture != null">pros_picture = #{prosPicture},</if>
|
|
|
<if test="consPicture != null">cons_picture = #{consPicture},</if>
|
|
|
- <if test="status != null">status = #{status},</if>
|
|
|
+ <if test="status != null and status != ''">status = #{status},</if>
|
|
|
<if test="refuseMsg != null">refuse_msg = #{refuseMsg},</if>
|
|
|
<if test="soldOutMsg != null">sold_out_msg = #{soldOutMsg},</if>
|
|
|
<if test="putawayTime != null">putaway_time = #{putawayTime},</if>
|