|
@@ -17,6 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="website" column="website" />
|
|
|
<result property="supplierPhone" column="supplier_phone" />
|
|
|
<result property="fax" column="fax" />
|
|
|
+ <result property="email" column="email" />
|
|
|
<result property="supplierMan" column="supplier_man" />
|
|
|
<result property="manPhone" column="man_phone" />
|
|
|
<result property="supplierNature" column="supplier_nature" />
|
|
@@ -81,7 +82,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, email, 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">
|
|
@@ -169,27 +170,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<insert id="insertSupplierInfo" parameterType="SupplierInfo">
|
|
|
insert into supplier_info
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null and id != ''">id,</if>
|
|
|
- <if test="zsId != null and zsId != ''">zs_id,</if>
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="zsId != null">zs_id,</if>
|
|
|
<if test="supplierName != null and supplierName != ''">supplier_name,</if>
|
|
|
- <if test="supplierReName != null and supplierReName != ''">supplier_re_name,</if>
|
|
|
+ <if test="supplierReName != null">supplier_re_name,</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="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="supplierCode != null">supplier_code,</if>
|
|
|
<if test="registration != null">registration,</if>
|
|
|
<if test="establishmentDate != null">establishment_date,</if>
|
|
@@ -236,7 +237,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 and status != ''">status,</if>
|
|
|
+ <if test="status != null">status,</if>
|
|
|
<if test="refuseMsg != null">refuse_msg,</if>
|
|
|
<if test="soldOutMsg != null">sold_out_msg,</if>
|
|
|
<if test="putawayTime != null">putaway_time,</if>
|
|
@@ -244,27 +245,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="endTime != null">end_time,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null and id != ''">#{id},</if>
|
|
|
- <if test="zsId != null and zsId != ''">#{zsId},</if>
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="zsId != null">#{zsId},</if>
|
|
|
<if test="supplierName != null and supplierName != ''">#{supplierName},</if>
|
|
|
- <if test="supplierReName != null and supplierReName != ''">#{supplierReName},</if>
|
|
|
+ <if test="supplierReName != null">#{supplierReName},</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="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="supplierCode != null">#{supplierCode},</if>
|
|
|
<if test="registration != null">#{registration},</if>
|
|
|
<if test="establishmentDate != null">#{establishmentDate},</if>
|
|
@@ -311,7 +312,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 and status != ''">#{status},</if>
|
|
|
+ <if test="status != null">#{status},</if>
|
|
|
<if test="refuseMsg != null">#{refuseMsg},</if>
|
|
|
<if test="soldOutMsg != null">#{soldOutMsg},</if>
|
|
|
<if test="putawayTime != null">#{putawayTime},</if>
|
|
@@ -323,26 +324,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 and zsId != ''">zs_id = #{zsId},</if>
|
|
|
+ <if test="zsId != null">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="supplierReName != null">supplier_re_name = #{supplierReName},</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="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="supplierCode != null">supplier_code = #{supplierCode},</if>
|
|
|
<if test="registration != null">registration = #{registration},</if>
|
|
|
<if test="establishmentDate != null">establishment_date = #{establishmentDate},</if>
|
|
@@ -389,7 +390,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 and status != ''">status = #{status},</if>
|
|
|
+ <if test="status != null">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>
|