浏览代码

性别取值问题

魏熙美 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
      * @param personType
116
      * @param personType
117
      * @return
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
     /**