|
@@ -95,29 +95,18 @@
|
|
|
where volunteer_id = #{volunteerId} and service_category = #{serviceCategory}
|
|
|
</select>
|
|
|
<select id="selectVolunteerInfoSimple" resultType="com.leromro.core.domain.vo.VolunteerInfoVO">
|
|
|
-<!-- select volunteer_id, skill_describe,age ,service_category,name,volunteer_picture,score,lvi.business_management_id-->
|
|
|
-<!-- from l_volunteer_info lvi left join l_business_management lbm on lvi.business_management_id = lbm.business_management_id-->
|
|
|
-<!-- where app_status = 2-->
|
|
|
-<!-- <if test="name != null and name != ''"> and lvi.name like concat('%', #{name}, '%')</if>-->
|
|
|
-<!-- <if test="score != null "> and lvi.score = #{score}</if>-->
|
|
|
-<!-- <if test="serviceCategory != null and serviceCategory != ''"> and lvi.service_category = #{serviceCategory}</if>-->
|
|
|
-<!-- <if test="skillDescribe != null and skillDescribe != ''"> and lvi.skill_describe = #{skillDescribe}</if>-->
|
|
|
-<!-- <if test="city != null and city != ''"> and lvi.city = #{city}</if>-->
|
|
|
-<!-- <if test="address != null and address != ''"> and lvi.address = #{address}</if>-->
|
|
|
-<!-- <if test="businessManagementId != null and businessManagementId != '' ">and lvi.business_management_id in (select lbm.business_management_id from l_business_management where find_in_set(#{businessManagementId},lbm.ancestors) ) or lvi.business_management_id = 28 </if>-->
|
|
|
-
|
|
|
select volunteer_id, skill_describe,age ,service_category,name,volunteer_picture,score,business_management_id
|
|
|
from l_volunteer_info lvi
|
|
|
where app_status = 2
|
|
|
and lvi.business_management_id in (select lbm.business_management_id from l_business_management lbm
|
|
|
- where find_in_set(#{businessManagementId},lbm.ancestors) or lbm.business_management_id = #{businessManagementId})
|
|
|
+ where find_in_set(#{info.businessManagementId},lbm.ancestors) or lbm.business_management_id = #{info.businessManagementId})
|
|
|
|
|
|
- <if test="name != null and name != ''"> and lvi.name like concat('%', #{name}, '%')</if>
|
|
|
- <if test="score != null "> and lvi.score = #{score}</if>
|
|
|
- <if test="serviceCategory != null and serviceCategory != ''"> and lvi.service_category = #{serviceCategory}</if>
|
|
|
- <if test="skillDescribe != null and skillDescribe != ''"> and lvi.skill_describe = #{skillDescribe}</if>
|
|
|
- <if test="city != null and city != ''"> and lvi.city = #{city}</if>
|
|
|
- <if test="address != null and address != ''"> and lvi.address = #{address}</if>
|
|
|
+ <if test="info.name != null and info.name != ''"> and lvi.name like concat('%', #{info.name}, '%')</if>
|
|
|
+ <if test="info.score != null "> and lvi.score = #{info.score}</if>
|
|
|
+ <if test="info.serviceCategory != null and info.serviceCategory != ''"> and lvi.service_category = #{info.serviceCategory}</if>
|
|
|
+ <if test="info.skillDescribe != null and info.skillDescribe != ''"> and lvi.skill_describe = #{info.skillDescribe}</if>
|
|
|
+ <if test="info.city != null and info.city != ''"> and lvi.city = #{info.city}</if>
|
|
|
+ <if test="info.address != null and info.address != ''"> and lvi.address = #{info.address}</if>
|
|
|
|
|
|
|
|
|
</select>
|