forked from luyan/epmet-cloud-lingshan
15 changed files with 336 additions and 16 deletions
@ -0,0 +1,44 @@ |
|||||
|
/** |
||||
|
* Copyright 2018 人人开源 https://www.renren.io
|
||||
|
* <p> |
||||
|
* This program is free software: you can redistribute it and/or modify |
||||
|
* it under the terms of the GNU General Public License as published by |
||||
|
* the Free Software Foundation, either version 3 of the License, or |
||||
|
* (at your option) any later version. |
||||
|
* <p> |
||||
|
* This program is distributed in the hope that it will be useful, |
||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
* GNU General Public License for more details. |
||||
|
* <p> |
||||
|
* You should have received a copy of the GNU General Public License |
||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
*/ |
||||
|
|
||||
|
package com.epmet.dao.heart; |
||||
|
|
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 活动信息 |
||||
|
* |
||||
|
* @author generator generator@elink-cn.com |
||||
|
* @since v1.0.0 2020-07-19 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface ActInfoDao{ |
||||
|
/** |
||||
|
* @return java.util.List<java.util.Map<java.lang.String,java.lang.Integer>> |
||||
|
* @param customerId |
||||
|
* @param monthId |
||||
|
* @author yinzuomei |
||||
|
* @description 查询这个月,各个网格举办的活动次数 活动状态已结束并且实际结束时间在评价周期内的 |
||||
|
* @Date 2020/9/21 10:41 |
||||
|
**/ |
||||
|
List<Map<String, Integer>> selectActGroupByGridId(@Param("customerId") String customerId, @Param("monthId") String monthId); |
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
|
||||
|
<mapper namespace="com.epmet.dao.heart.ActInfoDao"> |
||||
|
<!-- 查询这个月,各个网格举办的活动次数 活动状态已结束并且实际结束时间在评价周期内的 --> |
||||
|
<select id="selectActGroupByGridId" parameterType="map" resultType="java.util.Map"> |
||||
|
SELECT |
||||
|
ai.SPONSOR_ID, |
||||
|
count( 1 ) AS totalAct |
||||
|
FROM |
||||
|
act_info ai |
||||
|
WHERE |
||||
|
ai.DEL_FLAG = '0' |
||||
|
AND ai.ACT_STATUS = 'finished' |
||||
|
AND ai.SPONSOR_TYPE = 'grid' |
||||
|
and ai.CUSTOMER_ID=#{customerId} |
||||
|
AND DATE_FORMAT(ai.ACTUAL_END_TIME,'%Y%m') = #{monthId} |
||||
|
GROUP BY |
||||
|
ai.SPONSOR_ID |
||||
|
</select> |
||||
|
</mapper> |
Loading…
Reference in new issue