Roc 3 жил өмнө
parent
commit
199fd5f218

+ 1 - 1
controllers/contract_approval.go

@@ -62,7 +62,7 @@ func (this *ContractApprovalCommon) List() {
 
 	//归属
 	if status == "待审批" {
-		condition += ` AND (c.seller_id = ? and d.approve_user_id = c.user_id) OR (d.approve_user_id = ? and d.status="待审批")`
+		condition += ` AND (c.seller_id = ? and d.approve_user_id = c.seller_id) OR (d.approve_user_id = ? and d.status="待审批")`
 	} else {
 		condition += ` AND (c.seller_id = ? or d.approve_user_id = ?)`
 	}