Commit 52c6ca98 by 于方蒙

update

parent c49d84f4
......@@ -130,6 +130,8 @@ def run_hatch_open():
if rent_detail_sql.takeout_count == rent_detail_sql.rent_count:
rent_detail_sql.is_take = 1
db.session.add(rent_detail_sql)
db.session.commit()
# 当数量小于等于1时,将柜子物品状态改为已售空
left_res = Hatch.query.filter(Hatch.hatch_no == hatch_no,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment