| | |
| | | #{id} |
| | | </foreach> |
| | | </if> |
| | | and t1.state != 3 |
| | | </where> |
| | | order by t1.insertTime desc, t1.id desc |
| | | </select> |
| | | <select id="getSelects" resultType="com.dsh.account.dto.SelectDto"> |
| | | SELECT ts.id ,ts.`name` as value |
| | |
| | | <select id="getYearUserCount" resultType="com.dsh.account.vo.entity.YearData"> |
| | | select IFNULL(count(*),0) AS yearCount,DATE_FORMAT(insertTime,'%Y') AS `year` from t_app_user |
| | | <where> |
| | | AND state != 3 |
| | | <if test="dto.cityCode != null and dto.cityCode != ''"> |
| | | AND cityCode = #{dto.cityCode} |
| | | </if> |
| | |
| | | <select id="getMonthUserCount" resultType="com.dsh.account.vo.entity.MonthData"> |
| | | select IFNULL(count(*),0) AS monthCount,DATE_FORMAT(insertTime,'%Y%m') AS `month` from t_app_user |
| | | <where> |
| | | AND state != 3 |
| | | <if test="dto.cityCode != null and dto.cityCode != ''"> |
| | | AND cityCode = #{dto.cityCode} |
| | | </if> |
| | |
| | | <select id="getWeekUserCount4" resultType="com.dsh.account.vo.entity.WeekData"> |
| | | select IFNULL(count(*),0) AS weekCount,4 AS `week` from t_app_user |
| | | <where> |
| | | AND state != 3 |
| | | <if test="dto.startTime != null and dto.startTime != '' and dto.endTime != null and dto.endTime != ''"> |
| | | AND insertTime between #{dto.startTime} and #{dto.endTime} |
| | | </if> |
| | |
| | | <select id="getWeekUserCount3" resultType="com.dsh.account.vo.entity.WeekData"> |
| | | select IFNULL(count(*),0) AS weekCount,3 AS `week` from t_app_user |
| | | <where> |
| | | AND state != 3 |
| | | <if test="dto.startTime != null and dto.startTime != '' and dto.endTime != null and dto.endTime != ''"> |
| | | AND insertTime between #{dto.startTime} and #{dto.endTime} |
| | | </if> |
| | |
| | | <select id="getWeekUserCount2" resultType="com.dsh.account.vo.entity.WeekData"> |
| | | select IFNULL(count(*),0) AS weekCount,2 AS `week` from t_app_user |
| | | <where> |
| | | AND state != 3 |
| | | <if test="dto.startTime != null and dto.startTime != '' and dto.endTime != null and dto.endTime != ''"> |
| | | AND insertTime between #{dto.startTime} and #{dto.endTime} |
| | | </if> |
| | |
| | | <select id="getWeekUserCount1" resultType="com.dsh.account.vo.entity.WeekData"> |
| | | select IFNULL(count(*),0) AS weekCount,1 AS `week` from t_app_user |
| | | <where> |
| | | AND state != 3 |
| | | <if test="dto.startTime != null and dto.startTime != '' and dto.endTime != null and dto.endTime != ''"> |
| | | AND insertTime between #{dto.startTime} and #{dto.endTime} |
| | | </if> |
| | |
| | | <select id="getDayUserCount" resultType="com.dsh.account.vo.entity.DayData"> |
| | | select IFNULL(count(*),0) AS dayCount,DATE_FORMAT(insertTime,'%Y-%m-%d') AS `day` from t_app_user |
| | | <where> |
| | | AND state != 3 |
| | | <if test="dto.startTime != null and dto.startTime != '' and dto.endTime != null and dto.endTime != ''"> |
| | | AND insertTime between #{dto.startTime} and #{dto.endTime} |
| | | </if> |
| | |
| | | <select id="groupCityInfo" resultType="com.dsh.account.vo.GroupCityInfoVO"> |
| | | select IFNULL(count(*),0) AS userCount,cityCode,city from t_app_user |
| | | <where> |
| | | AND state != 3 |
| | | <if test="dto.startTime != null and dto.startTime != '' and dto.endTime != null and dto.endTime != ''"> |
| | | AND insertTime between #{dto.startTime} and #{dto.endTime} |
| | | </if> |
| | |
| | | <if test="query.salesmanUser!=null and query.salesmanUser!= ''"> |
| | | and t2.salesmanUserId = #{query.salesmanUser} |
| | | </if> |
| | | and t2.state != 3 |
| | | </where> |
| | | order by t2.insertTime desc, t2.id desc |
| | | </select> |
| | | </mapper> |