|
@@ -37,15 +37,17 @@
|
|
|
|
|
|
<select id="webList" resultType="com.leromro.core.domain.VolunteerInfo"
|
|
|
parameterType="com.leromro.core.domain.VolunteerInfo">
|
|
|
- select * from l_volunteer_info
|
|
|
+ select * from l_volunteer_info lvi
|
|
|
<where>
|
|
|
- <if test="name != null and name != ''"> and lvi.name like concat('%', #{name}, '%')</if>
|
|
|
+ <if test="dto.serviceCategory != null "> and service_category = #{dto.serviceCategory}</if>
|
|
|
+ <if test="dto.phonenumber != null">and phonenumber = #{dto.phonenumber}</if>
|
|
|
+ <if test="dto.appStatus != null and dto.appStatus != '' and dto.appStatus == 1"> and app_status in (1,3)</if>
|
|
|
+ <if test="dto.appStatus != null and dto.appStatus != '' and dto.appStatus == 2"> and app_status = 2</if>
|
|
|
+ <!--<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 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="appStatus != null and appStatus != '' and appStatus == 1"> and app_status in (1,3)</if>
|
|
|
- <if test="appStatus != null and appStatus != '' and appStatus == 2"> and app_status = 2</if>
|
|
|
+ -->
|
|
|
</where>
|
|
|
</select>
|
|
|
|