ソースを参照

性别取值问题

魏熙美 5 年 前
コミット
257a6919b5
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2
    2
      src/main/java/com/huiju/estateagents/mapper/TaPersonMapper.java

+ 2
- 2
src/main/java/com/huiju/estateagents/mapper/TaPersonMapper.java ファイルの表示

@@ -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
     /**