left JOIN logpm_basicdata_client lbc on lbs.client_id = lbc.id
<where>
lbs.is_deleted = 0
<iftest="param.clientId != null and param.clientId != ''"> and lbc.client_name like concat('%',#{param.clientId},'%')</if>
<iftest="param.storeCode != null and param.storeCode != ''">and lbs.store_code like concat('%',#{param.storeCode},'%')</if>
<iftest="param.storeName != null and param.storeName != ''">and lbs.store_name like concat('%',#{param.storeName},'%')</if>
@ -30,8 +31,6 @@
<iftest="param.bladeRegionAreaId != null and param.bladeRegionAreaId != ''">and lbs.blade_region_area_id like concat('%',#{param.bladeRegionAreaId},'%')</if>
LEFT JOIN logpm_basicdata_store_contact lbsc on lbsc.id = lbss.forwarding_unit
<where>
lbss.is_deleted = 0
<iftest="param.shopId != null and param.shopId != null"> and lbs.store_name = #{param.shopId}</if>
<iftest="param.forwardingUnit != null and param.forwardingUnit != null"> and lbsc.linkman = #{param.forwardingUnit}</if>
<iftest="param.warehouseService != null and param.warehouseService != null"> and lbss.warehouseService = #{param.warehouseService}</if>
<iftest="param.shopId != null and param.shopId != null"> and lbs.store_name like concat('%',#{param.shopId},'%') </if>
<iftest="param.forwardingUnit != null and param.forwardingUnit != null"> and lbsc.linkman like concat('%',#{param.forwardingUnit} ,'%')</if>
<iftest="param.warehouseService != null and param.warehouseService != null"> and lbss.warehouse_service like concat('%',#{param.warehouseService},'%') </if>