Commit 15ac23e7 authored by hezhen's avatar hezhen

123

parent 72a68c9f
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
select `parent_id` as `parentId`,`user_id`as `userId`,`bind_time` as `bindTime` from `app_user_relation` where `parent_id`=#{leaderId} and `is_del`=0 order by `bind_time` DESC select `parent_id` as `parentId`,`user_id`as `userId`,`bind_time` as `bindTime` from `app_user_relation` where `parent_id`=#{leaderId} and `is_del`=0 order by `bind_time` DESC
</select> </select>
<select id="countByParentId"> <select id="countByParentId" resultType="Integer">
select count(*) from `app_user_relation` where select count(*) from `app_user_relation` where
`parent_id`=#{parentId} and `is_del`=0 `parent_id`=#{parentId} and `is_del`=0
<if test="bindTime!='' and bindTime!=null and bindTime>0"> <if test="bindTime!='' and bindTime!=null and bindTime>0">
and (is_forever=2 or bind_time>#{bindTime}) and (is_forever=1 or bind_time>#{bindTime})
</if> </if>
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment