|
@@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="corporateLogo" column="corporate_logo" />
|
|
|
<result property="customerSource" column="customer_source" />
|
|
|
<result property="cityCode" column="city_code" />
|
|
|
+ <result property="areaCode" column="area_code" />
|
|
|
<result property="attributedPersonnel" column="attributed_personnel" />
|
|
|
<result property="detailedAddress" column="detailed_address" />
|
|
|
<result property="industryType" column="industry_type" />
|
|
@@ -35,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCustomerInfoVo">
|
|
|
- select id, corporate_name, business_type, corporate_logo, customer_source, city_code, attributed_personnel, detailed_address, industry_type, corporate_phone, corporate_contacts, phone, customer_star, enterprise_tax_number, invoice_title, bank_of_deposit, bank_account, finance_phone, fax_number, applet_address, applet_logo, applet_qr_code, applet_introduce, shelf_status, create_time, update_time, status from customer_info
|
|
|
+ select id, corporate_name, business_type, corporate_logo, customer_source, city_code,area_code, attributed_personnel, detailed_address, industry_type, corporate_phone, corporate_contacts, phone, customer_star, enterprise_tax_number, invoice_title, bank_of_deposit, bank_account, finance_phone, fax_number, applet_address, applet_logo, applet_qr_code, applet_introduce, shelf_status, create_time, update_time, status from customer_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCustomerInfoList" parameterType="CustomerInfo" resultMap="CustomerInfoResult">
|
|
@@ -46,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="corporateLogo != null "> and corporate_logo = #{corporateLogo}</if>
|
|
|
<if test="customerSource != null "> and customer_source = #{customerSource}</if>
|
|
|
<if test="cityCode != null and cityCode != ''"> and city_code = #{cityCode}</if>
|
|
|
+ <if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
|
|
|
<if test="attributedPersonnel != null "> and attributed_personnel = #{attributedPersonnel}</if>
|
|
|
<if test="detailedAddress != null and detailedAddress != ''"> and detailed_address = #{detailedAddress}</if>
|
|
|
<if test="industryType != null "> and industry_type = #{industryType}</if>
|
|
@@ -73,6 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
f1.file_url as corporateLogoFileUrl,
|
|
|
ci.customer_source,
|
|
|
ci.city_code,
|
|
|
+ ci.area_code,
|
|
|
ci.attributed_personnel,
|
|
|
ci.detailed_address,
|
|
|
ci.industry_type,
|
|
@@ -125,11 +128,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
|
1=1
|
|
|
<choose>
|
|
|
- <when test="productId == 0">
|
|
|
+ <when test="productIdStatus == 0">
|
|
|
ORDER BY collectionCount DESC
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
- and ci.industry_type = #{productId}
|
|
|
+ and ci.industry_type in
|
|
|
+ <foreach collection="productIds" item="item" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
</where>
|