Commit 0b325c73 by 徐高华

社群群发

parent 4bc9ccc9
......@@ -37,7 +37,18 @@ public class GroupChatSearchQDTO extends PageQo implements Serializable {
private Integer canUseFlag ;
private String wxChatId ;
private String searchPage ;
// 查询放弃群的过滤时间
private Date giveUpStartTime ;
public Date getGiveUpStartTime() {
return giveUpStartTime;
}
public void setGiveUpStartTime(Date giveUpStartTime) {
this.giveUpStartTime = giveUpStartTime;
}
public String getSearchPage() {
return searchPage;
}
......
......@@ -533,9 +533,10 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
List<TabGroupChatPlanLog> addList = new ArrayList<>();
boolean endFlag = false;
List<Long> doneGroupChatIdList = new ArrayList<>() ;
Date sendTime = null ;
for (QywxSendMessageResultDTO item : list) {
TabGroupChatPlanLog entity = new TabGroupChatPlanLog();
Date sendTime = item.getSendTime();
sendTime = item.getSendTime();
String wxChatId = item.getChatId();
// 如果企微的发送时间晚于计划的结束时间,不记录此类数据
if (sendTime.after(plan.getEndTime())) {
......@@ -581,6 +582,7 @@ public class GroupChatPlanServiceImpl implements GroupChatPlanService {
chatQDTO.setStaffId(staffId);
chatQDTO.setStatus(0);
chatQDTO.setGicFlag(1);
chatQDTO.setGiveUpStartTime(sendTime);
List<GroupChatDTO> groupChatDTOList = this.groupChatMapper.list(chatQDTO);
if(CollectionUtils.isNotEmpty(groupChatDTOList)) {
for(GroupChatDTO chatDTO : groupChatDTOList) {
......
......@@ -316,6 +316,11 @@
<if test="null != startDate">
and a.chat_add_time <![CDATA[ >=]]> #{startDate} and a.chat_add_time <![CDATA[ <= ]]> #{endDate}
</if>
<if test="null != giveUpStartTime">
and a.chat_add_time <![CDATA[ <= ]]> #{giveUpStartTime}
</if>
<if test="null != dismissStartDate">
and a.chat_dissolve_time <![CDATA[ >=]]> #{startDate} and a.chat_dissolve_time <![CDATA[ <= ]]> #{endDate}
</if>
......
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