Commit d385cb8f authored by maliang's avatar maliang

权限控制

parent b26b0c24
...@@ -6,7 +6,6 @@ import org.apache.ibatis.annotations.Param; ...@@ -6,7 +6,6 @@ import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import java.util.List; import java.util.List;
import java.util.Map;
@Mapper @Mapper
public interface AdvertDao { public interface AdvertDao {
...@@ -15,4 +14,16 @@ public interface AdvertDao { ...@@ -15,4 +14,16 @@ public interface AdvertDao {
@Select("select count(*) from advert_data_count t where report_date>= #{startTime} and report_date<=#{endTime}") @Select("select count(*) from advert_data_count t where report_date>= #{startTime} and report_date<=#{endTime}")
Integer getAdvertDataCount(@Param("startTime") String startTime, @Param("endTime") String endTime); Integer getAdvertDataCount(@Param("startTime") String startTime, @Param("endTime") String endTime);
@Select("select advertiser_id advertiserId,advertiser_name advertiserName from advertiser_user_map t where user_id={#userId}")
List<AdvertiserData> getAdvertiserByUserId(@Param("userId") String userId);
@Select("select code_id codeId from advert_list t where advertiser_id={#advertiserId}")
List<AdvertiserData> getAdvertDataById(@Param("advertiserId") String advertiserId);
@Select("select *,advertiser_id advertiserId,advertiser_name,total_income totalIncome,income_seven incomeSeven,income_thirty incomeThirty,exposure_view exposureView,click_view clickView from advertiser_data_count t where advertiser_id={#advertiserId}")
List<AdvertiserData> getAdvertiserDataById(@Param("advertiserId") String advertiserId);
@Select("select minutes,sum(exposure) exposure,sum(click) click from advertiser_data_runtime t where advertiser_id={#advertiserId} and report_date<={#day} and report_date<={#day} group by minutes")
List<AdvertiserData> getAdvertExCl(@Param("advertiserId") String advertiserId,@Param("day") String day);
} }
...@@ -16,6 +16,15 @@ public class AdvertiserData { ...@@ -16,6 +16,15 @@ public class AdvertiserData {
public Double incomeThirty; public Double incomeThirty;
public Integer exposureView; public Integer exposureView;
public Integer clickView; public Integer clickView;
public String minutes;
public String getMinutes() {
return minutes;
}
public void setMinutes(String minutes) {
this.minutes = minutes;
}
public Double getBalance() { public Double getBalance() {
return balance; return balance;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment