Przeglądaj źródła

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

dzx 1 rok temu
rodzic
commit
87d0fadbcd
1 zmienionych plików z 1 dodań i 4 usunięć
  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">