Commit 61331f1b by 徐高华

社群群发

parent 0c40b97c
...@@ -96,8 +96,14 @@ ...@@ -96,8 +96,14 @@
and (d.name like #{chatName} or d.wx_chat_id like #{wxChatId} and (d.name like #{chatName} or d.wx_chat_id like #{wxChatId}
</if> </if>
<if test="null !=sendStatus"> <if test="null !=sendStatus">
<if test="sendStatus==30">
and a.send_status = in (0,3)
</if>
<if test="sendStatus != 30">
and a.send_status = #{sendStatus} and a.send_status = #{sendStatus}
</if> </if>
</if>
<if test="null != startDate"> <if test="null != startDate">
and a.create_time <![CDATA[>=]]> #{startDate} and a.create_time <![CDATA[<=]]> #{endDate} and a.create_time <![CDATA[>=]]> #{startDate} and a.create_time <![CDATA[<=]]> #{endDate}
</if> </if>
......
...@@ -213,7 +213,7 @@ public class GroupChatPlanController { ...@@ -213,7 +213,7 @@ public class GroupChatPlanController {
*/ */
@RequestMapping("owner-do-list") @RequestMapping("owner-do-list")
public RestResponse<Page<GroupChatPlanLogDTO>> ownerDoList(Long planId, String wxEnterpriseId, String enterpriseId, Long ownLogId, public RestResponse<Page<GroupChatPlanLogDTO>> ownerDoList(Long planId, String wxEnterpriseId, String enterpriseId, Long ownLogId,
BasePageInfo basePageInfo) { BasePageInfo basePageInfo,Integer sendStatus) {
if (null == planId || null == ownLogId) { if (null == planId || null == ownLogId) {
return RestResponse.failure("1", "参数未传"); return RestResponse.failure("1", "参数未传");
} }
...@@ -222,6 +222,10 @@ public class GroupChatPlanController { ...@@ -222,6 +222,10 @@ public class GroupChatPlanController {
qdto.setEnterpriseId(enterpriseId); qdto.setEnterpriseId(enterpriseId);
qdto.setPlanId(planId); qdto.setPlanId(planId);
qdto.setOwnLogId(ownLogId); qdto.setOwnLogId(ownLogId);
if(null == sendStatus) {
sendStatus = 2 ;
}
qdto.setSendStatus(sendStatus);
ServiceResponse<Page<GroupChatPlanLogDTO>> page = this.groupChatPlanApiService.listLogPage(planId, qdto, ServiceResponse<Page<GroupChatPlanLogDTO>> page = this.groupChatPlanApiService.listLogPage(planId, qdto,
basePageInfo); basePageInfo);
return RestResponse.successResult(page.getResult()); return RestResponse.successResult(page.getResult());
......
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