Parcourir la source

调整床位左边性别查询调整

dzx il y a 1 an
Parent
commit
87d0fadbcd
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. 1 4
      src/main/resources/mapper/room/RoomBedMapper.xml

+ 1 - 4
src/main/resources/mapper/room/RoomBedMapper.xml

@@ -178,10 +178,7 @@
             and t4.id = #{dto.classId}
         </if>
         <if test="dto.gender != null and dto.gender != ''">
-            and t6.gender = #{dto.gender}
-        </if>
-        <if test="dto.gender != null and dto.gender != ''">
-            and t6.gender = #{dto.gender}
+            and REPLACE(REPLACE(t2.gender,1,'SB10001'),2,'SB10002') = #{dto.gender}
         </if>
         <if test="dto.isDistribute != null">
             <if test="dto.isDistribute == 1">