|
@@ -53,7 +53,8 @@
|
|
|
select volunteer_id, skill_describe,age ,service_category,name,volunteer_picture,score,business_management_id ,
|
|
|
business_price,business_tier_name , business_unit,business_describe
|
|
|
from l_volunteer_info lvi
|
|
|
- where app_status = 2
|
|
|
+ <where> app_status = 2
|
|
|
+
|
|
|
AND EXISTS (
|
|
|
SELECT 1
|
|
|
FROM l_volunteer_work_date lvw
|
|
@@ -69,11 +70,12 @@
|
|
|
<!-- <if test="info.provinceCode != null and info.provinceCode != ''">and lvi.province_code = #{info.provinceCode}</if>-->
|
|
|
<!-- <if test="info.cityCode != null and info.cityCode != ''">and lvi.city_code = #{info.cityCode}</if>-->
|
|
|
<!-- <if test="info.districtCode != null and info.districtCode != ''">and lvi.district_code = #{info.districtCode}</if>-->
|
|
|
- <if test="info.businessTierName != null and info.businessTierName != ''">
|
|
|
- and lvi.business_tier_name like concat('%', #{info.businessTierName}, '%') or
|
|
|
- lvi.name like concat('%', #{info.businessTierName}, '%') or
|
|
|
- lvi.business_describe like concat('%', #{info.businessTierName}, '%')
|
|
|
- </if>
|
|
|
+ <if test="info.businessTierName != null and info.businessTierName != ''">
|
|
|
+ and (lvi.business_tier_name like concat('%', #{info.businessTierName}, '%') or
|
|
|
+ lvi.name like concat('%', #{info.businessTierName}, '%') or
|
|
|
+ lvi.business_describe like concat('%', #{info.businessTierName}, '%'))
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
</select>
|
|
|
|
|
|
<select id="getCurrentOrgVolunteerList" resultType="com.leromro.core.domain.VolunteerInfo">
|