feat(project):add sts
This commit is contained in:
@@ -54,6 +54,10 @@ class DesignProgressRepository(BaseRepository[CreateDesignProgress]):
|
||||
await use_collection(COLLECTION).update_one({"_id":_id},{"$set": {
|
||||
"start_at":start_at,"complete_at":_inp.complete_at
|
||||
}})
|
||||
if design_progress.type == 1:
|
||||
await use_collection('project').update_one({"_id":design_progress.project_id},{"$set":{"sts":2}})
|
||||
elif design_progress.type == 7:
|
||||
await use_collection('project').update_one({"_id": design_progress.project_id}, {"$set": {"sts": 4}})
|
||||
get_record = GetRecord(
|
||||
project_id=design_progress.project_id,
|
||||
type=design_progress.type,
|
||||
|
||||
Reference in New Issue
Block a user