Pārlūkot izejas kodu

性别取值问题

魏熙美 5 gadus atpakaļ
vecāks
revīzija
257a6919b5

+ 2
- 2
src/main/java/com/huiju/estateagents/mapper/TaPersonMapper.java Parādīt failu

@@ -116,8 +116,8 @@ public interface TaPersonMapper extends BaseMapper<TaPerson> {
116 116
      * @param personType
117 117
      * @return
118 118
      */
119
-    @Select("select count(1) as sex_count from ta_person where ifnull(person_type, '') != #{personType} and sex = #{sex}")
120
-    Integer selectSexUser(@Param("personType") String personType, @Param("sex") Integer sex);
119
+    @Select("select count(1) as sex_count from ta_person where ifnull(person_type, '') != #{personType} and gender = #{gender}")
120
+    Integer selectSexUser(@Param("personType") String personType, @Param("gender") Integer gender);
121 121
 
122 122
 
123 123
     /**