`id`,`tenant_id`,`parent_tenant_id`,`name`,`group`,`country`,`province`,`city`,`addr`,
`total_area`,`operating_area`,`park_area`,`park_place_number`,`service_phone`,
`img_url`,`img_url_h`, `weap_note`, `img_qrcode_weapp`, `img_qrcode_wemp`,
`weapp_share_title`,`weapp_share_cover_img`, `pos_qrcode_rule`,
`sale_type`, `valid_start`, `valid_end`,`business_hours`,`introduction`,`img`,
`group_support`,`latitude`,`longitude`,`live_support`,`cash_out_support`,`cash_out_limit`,`alipay_app_auth_token`,`alipay_member_template_id`
where id > 1
and `id` = #{id}
and `tenant_id` = #{tenantId}
and `parent_tenant_id` = #{parentTenantId}
and `name` like concat('%', #{name},'%')
and `group` like concat('%', #{group},'%')
and `country` like concat('%', #{country},'%')
and `province` like concat('%', #{province},'%')
and `city` like concat('%', #{city},'%')
and `addr` like concat('%', #{addr},'%')
and `total_area` = #{totalArea}
and `operating_area` = #{operatingArea}
and `park_area` = #{parkArea}
and `park_place_number` = #{parkPlaceNumber}
and `service_phone` = #{servicePhone}
and `img_url` = #{imgUrl}
and `img_ur_h` = #{imgUrlH}
and `img_qrcode_weapp` = #{imgQrcodeWeapp}
and `img_qrcode_wemp` = #{imgQrcodeWemp}
and `sale_type` = #{saleType}
and `valid_start` = #{validStart}
and `valid_end` = #{validEnd}
and `group_support` = #{groupSupport}
and tenant_id in
#{tIdItem}
and parent_tenant_id in
#{ptIdItem}
and id in
#{idItem}
order by ${sortColumns}
update wx_mall set parent_tenant_id = null where parent_tenant_id = #{parentTenantId}
update wx_mall set parent_tenant_id = #{parentTenantId} where tenant_id in
#{item}