| | |
| | | select count(*) from user where TO_DAYS(reg_time) = TO_DAYS(NOW()) and agent_id = #{id} |
| | | </select> |
| | | |
| | | <select id="findByPhone" parameterType="string" resultType="com.nq.pojo.User"> |
| | | select * from user where phone= #{phone} |
| | | </select> |
| | | |
| | | |
| | | <select id="queryAgintSumTodayRegCount" parameterType="integer" resultType="int"> |
| | | select count(*) from user where agent_id =#{id} TO_DAYS(reg_time) = TO_DAYS(NOW()) |
| | |
| | | <include refid="Base_Column_List"/> |
| | | FROM user |
| | | <where> |
| | | <if test="id != null and id != '' "> |
| | | and id = #{id} |
| | | </if> |
| | | <if test="searchId != null "> |
| | | and agent_id = #{searchId} |
| | | </if> |