|
|
@ -12,7 +12,7 @@ public interface MatrixAdvRecordMapper extends BaseMapper<MatrixAdvRecord> { |
|
|
|
@Select("select id from `matrix_adv_record` where `app_id` = #{appId} and `created_at` >= #{beginTime} order by id limit 1") |
|
|
|
Integer getBeginId(Integer appId, String beginTime); |
|
|
|
|
|
|
|
@Select("select adv_type, sum(ecpm) as ecpm from matrix_adv_record where `app_id` = #{appId} and id >= #{id}") |
|
|
|
@Select("select adv_type, sum(ecpm) as ecpm from matrix_adv_record where `app_id` = #{appId} and id >= #{id} group by adv_type") |
|
|
|
List<MatrixAdvRecord> groupByAdvType(Integer id, Integer appId); |
|
|
|
|
|
|
|
@Select("select * from matrix_app where code = #{code}") |
|
|
|