|
|
|
@@ -19,11 +19,13 @@ |
|
|
|
<result column="vip_discount_rate1" jdbcType="SMALLINT" property="vipDiscountRate1"/> |
|
|
|
<result column="vip_discount_rate2" jdbcType="SMALLINT" property="vipDiscountRate2"/> |
|
|
|
<result column="vip_discount_rate3" jdbcType="SMALLINT" property="vipDiscountRate3"/> |
|
|
|
<result column="type" jdbcType="SMALLINT" property="type"/> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="allColumns"> |
|
|
|
`id`,`tenant_id`,`img_url`,`name`,`link_phone`,`create_date`,`update_date`,`car_vendor_type`,`car_params`,`status`,`link_person`, |
|
|
|
`business_id`,`shop_type`,`brand`,`vip_discount_rate1`,`vip_discount_rate2`,`vip_discount_rate3` |
|
|
|
`business_id`,`shop_type`,`brand`,`vip_discount_rate1`,`vip_discount_rate2`,`vip_discount_rate3`,`type` |
|
|
|
</sql> |
|
|
|
|
|
|
|
<sql id="dynamicWhereConditions"> |
|
|
|
@@ -74,6 +76,9 @@ |
|
|
|
<if test=" null != linkPerson "> |
|
|
|
and `link_person` = #{linkPerson} |
|
|
|
</if> |
|
|
|
<if test=" null != type "> |
|
|
|
and `type` = #{type} |
|
|
|
</if> |
|
|
|
<if test=" null != ids "> |
|
|
|
and id in |
|
|
|
<foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> |
|
|
|
|