Commit 4c7af5f5 by 魏强

退款备注不是必传;

parent 7f83d593
...@@ -425,7 +425,7 @@ def rent_money_refund_new(): ...@@ -425,7 +425,7 @@ def rent_money_refund_new():
comment = json_data['comment'] if 'comment' in json_data else '' comment = json_data['comment'] if 'comment' in json_data else ''
time_price = json_data['time_price'] if 'time_price' in json_data else [] time_price = json_data['time_price'] if 'time_price' in json_data else []
if not rent_no or not hatch_no or not cause or not comment or not time_price: if not rent_no or not hatch_no or not cause or not time_price:
return jsonify(PARAMETER_ERROR) return jsonify(PARAMETER_ERROR)
rent_info = db.session.query(Production, Rent).join(Rent, Rent.id == Production.rent_id).filter( rent_info = db.session.query(Production, Rent).join(Rent, Rent.id == Production.rent_id).filter(
......
...@@ -11,5 +11,5 @@ class RentRefund(BaseModel): ...@@ -11,5 +11,5 @@ class RentRefund(BaseModel):
refund_no = Column(String(191, 'utf8mb4_unicode_ci'), nullable=False) refund_no = Column(String(191, 'utf8mb4_unicode_ci'), nullable=False)
production_id = Column(Integer, server_default=FetchedValue(), nullable=False) production_id = Column(Integer, server_default=FetchedValue(), nullable=False)
fee = Column(Integer, server_default=FetchedValue(), nullable=False) fee = Column(Integer, server_default=FetchedValue(), nullable=False)
comment = Column(Text(collation='utf8mb4_unicode_ci'), nullable=False) comment = Column(Text(collation='utf8mb4_unicode_ci'))
cause = Column(String(191, 'utf8mb4_unicode_ci')) cause = Column(String(191, 'utf8mb4_unicode_ci'))
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