nili 6 months ago
parent
commit
e1aac72257
  1. 2
      game-dao/src/main/java/awesome/group/game/dao/mapper/MatrixAdvRecordMapper.java

2
game-dao/src/main/java/awesome/group/game/dao/mapper/MatrixAdvRecordMapper.java

@ -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}")

Loading…
Cancel
Save