@ -519,7 +519,11 @@ export class AppController {
throw new BadRequestException("数据不存在")
}
if (node_other_visitor.end_time) {
throw new BadRequestException("拜访已结束")
// throw new BadRequestException("拜访已结束")
return {
code: 400,
message: "拜访已结束"
node_other_visitor.end_time = new Date();
const result = await this.nodeOtherVisitorRepository.save(node_other_visitor);