feat(financial_status):add update project_price
This commit is contained in:
@@ -47,7 +47,7 @@ class ProjectRepository(BaseRepository[ProjectModel]):
|
||||
}
|
||||
await use_collection(TaskEnv.CLN_PROJECT_PRICE_REPORT).insert_one(price)
|
||||
else:
|
||||
await use_collection(TaskEnv.CLN_PROJECT_PRICE_REPORT).update_one({'project_id': update.id}, {'first_amount': update.monitor.detail.first_amount})
|
||||
await use_collection(TaskEnv.CLN_PROJECT_PRICE_REPORT).update_one({'project_id': update.id}, {'$set':{'first_amount': update.monitor.detail.first_amount}})
|
||||
return True
|
||||
|
||||
async def create(self,coding:ProjectModel):
|
||||
|
||||
Reference in New Issue
Block a user