Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于renew的判断问题 #3

Open
kina12333 opened this issue Jun 8, 2024 · 1 comment
Open

关于renew的判断问题 #3

kina12333 opened this issue Jun 8, 2024 · 1 comment

Comments

@kina12333
Copy link

输入:
6
A-0009 2
A-0002 1
C-0002 1
A-0001 1
B-0010 2
A-0004 2
[2024-02-07] OPEN
[2024-02-07] 69095618 borrowed B-0010
[2024-02-07] 26321538 queried A-0001
[2024-02-07] 26321538 ordered B-0010
[2024-02-07] 69095618 borrowed C-0002
[2024-02-07] 69095618 queried credit score
[2024-02-07] 69095618 ordered A-0002
[2024-02-07] 26321538 borrowed C-0002
[2024-02-07] CLOSE
[2024-03-08] OPEN
[2024-03-08] 69095618 renewed B-0010
输出:
0
[2024-02-07] [accept] 69095618 borrowed B-0010
[2024-02-07] A-0001 1
[2024-02-07] [accept] 26321538 ordered B-0010
[2024-02-07] [accept] 69095618 borrowed C-0002
[2024-02-07] 69095618 10
[2024-02-07] [reject] 69095618 ordered A-0002
[2024-02-07] [reject] 26321538 borrowed C-0002
0
1
[2024-03-08] move B-0010 from bs to ao for 26321538
[2024-03-08] [accept] 69095618 renewed B-0010

如上案例,判断错误的原因是应为reject
但我认为此处的renew应当是合理的

@solor-wind
Copy link
Owner

同学你好,这条数据中B-0010共2本,在续借时,一本被69095618借走,一本被26321538预约且仍有效,满足课程组的“续借时,若存在任意一位用户对该书正在生效的预约且该书无在架余本,则续借失败”要求

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants