LiRong преди 3 месеца
родител
ревизия
f60a77e566
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      leromro-core/src/main/resources/mapper/core/VolunteerInfoMapper.xml

+ 4 - 4
leromro-core/src/main/resources/mapper/core/VolunteerInfoMapper.xml

@@ -39,10 +39,10 @@
             parameterType="com.leromro.core.domain.VolunteerInfo">
         select * from l_volunteer_info lvi left join sys_user su on lvi.volunteer_id = su.user_id
         <where>
-            <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="dto.serviceCategory != null "> and lvi.service_category = #{dto.serviceCategory}</if>
+            <if test="dto.phonenumber != null">and lvi.phonenumber = #{dto.phonenumber}</if>
+            <if test="dto.appStatus != null  and dto.appStatus != '' and dto.appStatus == 1"> and  lvi.app_status in (1,3)</if>
+            <if test="dto.appStatus != null  and dto.appStatus != '' and dto.appStatus == 2"> and  lvi.app_status = 2</if>
             <if test="dto.serviceCenterId != null  and dto.serviceCenterId != '' "> and su.service_centre_id = #{dto.serviceCenterId}</if>
             <!--<if test="name != null  and name != ''"> and lvi.name like concat('%', #{name}, '%')</if>
             <if test="score != null "> and lvi.score = #{score}</if>