Commit 659aaed0 by 徐高华

数据统计

parent 3887ef49
package com.gic.haoban.manage.service.dao.mapper.chat;
import java.util.List;
import java.util.Map;
import com.gic.haoban.manage.api.dto.chat.GroupChatDataDTO;
import com.gic.haoban.manage.api.dto.qdto.chat.ChatDataSearchQDTO;
import com.gic.haoban.manage.service.entity.chat.TabGroupChatData;
/**
......@@ -18,5 +19,7 @@ public interface GroupChatDataMapper {
public int insert(TabGroupChatData entity);
public List<TabGroupChatData> listByParams(Map<String, Object> params);
public List<GroupChatDataDTO> list(ChatDataSearchQDTO qdto);
public List<GroupChatDataDTO> listByPage(ChatDataSearchQDTO qdto);
}
\ No newline at end of file
......@@ -69,10 +69,31 @@
]]>
</insert>
<select id="listByParams" parameterType="java.util.Map"
resultMap="result-map-tabHaobanGroupChatData">
select
<include refid="Base_Column_List" />
from tab_haoban_group_chat_data
<select id="list" parameterType="com.gic.haoban.manage.api.dto.qdto.chat.ChatDataSearchQDTO"
resultType="com.gic.haoban.manage.api.dto.chat.GroupChatDataDTO">
select staffName , chatTotal from (
select
b.staff_name staffName ,
a.staff_id staffId ,
a.date date ,
a.new_chat_cnt newChatCnt ,
a.chat_total chatTotal,
a.chat_has_msg chatHasMsg ,
a.new_member_cnt newMemberCnt ,
a.member_total memberTotal ,
a.member_has_msg memberHasMsg ,
a.msg_total msgTotal ,
a. migrate_trainee_chat_cnt migrateTraineeChatCnt
from tab_haoban_group_chat_data a left join tab_haoban_staff b on a.staff_id = b.staff_id
where a.wx_enterprise_id = #{wxEnterpriseId}
and a.date >= #{startDate} and a.date <= #{endDate}
<if test="null != staffIdList and staffIdList.size > 0">
and a.staff_id in
<foreach collection="staffIdList" close=")" open="(" index="index" item="staffId" separator=",">
#{staffId}
</foreach>
</if>
ORDER BY a.date DESC
)
</select>
</mapper>
\ No newline at end of file
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