排号修改叫号状态修改
This commit is contained in:
parent
d0cec6c5ed
commit
e129be76e8
|
|
@ -9,7 +9,6 @@ import javax.validation.constraints.NotNull;
|
|||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
public class TakeNumberDTO extends BaseCallTableDTO{
|
||||
@NotNull
|
||||
private Integer userId;
|
||||
@NotEmpty
|
||||
private String phone;
|
||||
|
|
|
|||
|
|
@ -268,10 +268,12 @@ public class TbCallServiceImpl implements TbCallService {
|
|||
callQueue.setCancelTime(DateUtil.date().toInstant());
|
||||
break;
|
||||
case 0:
|
||||
callQueue.setState((byte) 0);
|
||||
break;
|
||||
case 1:
|
||||
if (callQueue.getSubState().equals(0)) {
|
||||
throw new BadRequestException("当前用户未订阅微信提醒");
|
||||
}
|
||||
|
||||
callQueue.setState((byte) 1);
|
||||
callQueue.setCallCount(callQueue.getCallCount() + 1);
|
||||
callQueue.setCallTime(DateUtil.date().toInstant());
|
||||
|
|
|
|||
Loading…
Reference in New Issue