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