排号修改叫号状态修改

This commit is contained in:
SongZhang 2024-09-18 10:20:26 +08:00
parent d0cec6c5ed
commit e129be76e8
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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());