|
@@ -187,6 +187,12 @@ async def get_info_detail(
|
|
|
|
|
|
response_row = db.query(InfoPublishResponses).filter(and_(InfoPublishResponses.publish_id == id, InfoPublishResponses.user_id == user_id)).first()
|
|
|
|
|
|
+ # 是否我的审批事项(待审批)
|
|
|
+ is_my_examine = 0
|
|
|
+ examine_row = db.query(InfoPublishExamine).filter(InfoPublishExamine.del_flag == "0").filter(InfoPublishExamine.user_id == user_id).filter(InfoPublishExamine.examine_sub_type == 20).order_by(InfoPublishExamine.id.desc()).limit(1).first()
|
|
|
+ if examine_row is not None:
|
|
|
+ is_my_examine = 1
|
|
|
+
|
|
|
data = {
|
|
|
"id": row.id,
|
|
|
"title": row.title,
|
|
@@ -203,7 +209,7 @@ async def get_info_detail(
|
|
|
"response_time": get_datetime_str(response_row.response_time),
|
|
|
"signature": get_signature_base64(db, response_row.id),
|
|
|
|
|
|
- "is_my_examine": row.examine_status == 1 and int(row.examine_by) == user_id # 是否我的审批事项
|
|
|
+ "is_my_examine": is_my_examine
|
|
|
}
|
|
|
|
|
|
# 附件
|