dequeue before enqueue

This commit is contained in:
东煌 2020-08-25 14:12:23 +08:00
parent 2e5a0b7bfd
commit 90dc44d926

View File

@ -38,9 +38,11 @@ public class CampaignController implements SessionAbility {
@PathVariable("account")
final String account,
@Valid @RequestBody final ReqCampaign form) {
final Agent agent = agentService.findValid(
form.getTenantId(), account);
agentStatusService.findValidAgentStatus(agent);
commonCampaignService.dequeue(agent);
commonCampaignService.enqueue(form.getCampaignKey(), agent);
// agent ready