|
|
|
@ -16,12 +16,12 @@ import java.util.List; |
|
|
|
@DS("mailbox") |
|
|
|
@DS("mailbox") |
|
|
|
public interface MailMapper extends BaseMapper<Mail> { |
|
|
|
public interface MailMapper extends BaseMapper<Mail> { |
|
|
|
@Select("SELECT " + |
|
|
|
@Select("SELECT " + |
|
|
|
"TO_CHAR(DATE_TRUNC('month', create_time), 'MM') AS name, " + |
|
|
|
"TO_CHAR(DATE_TRUNC('month', mail_time), 'MM') AS name, " + |
|
|
|
"COUNT(*) AS value " + |
|
|
|
"COUNT(*) AS value " + |
|
|
|
"FROM mailbox.mail " + |
|
|
|
"FROM mailbox.mail " + |
|
|
|
"WHERE EXTRACT(YEAR FROM create_time) = #{year} " + |
|
|
|
"WHERE EXTRACT(YEAR FROM mail_time) = #{year} " + |
|
|
|
"AND mail_state !='terminated' " + |
|
|
|
"AND mail_state !='terminated' " + |
|
|
|
"GROUP BY TO_CHAR(DATE_TRUNC('month', create_time), 'MM') " + |
|
|
|
"GROUP BY TO_CHAR(DATE_TRUNC('month', mail_time), 'MM') " + |
|
|
|
"ORDER BY name;") |
|
|
|
"ORDER BY name;") |
|
|
|
List<EchartsVo> selectTrendByYear(Integer year); |
|
|
|
List<EchartsVo> selectTrendByYear(Integer year); |
|
|
|
|
|
|
|
|
|
|
|
|