|
@@ -62,9 +62,9 @@ func (this *ContractApprovalCommon) List() {
|
|
|
|
|
|
//归属
|
|
|
if status == "待审批" {
|
|
|
- condition += ` AND (c.user_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.user_id) OR (d.approve_user_id = ? and d.status="待审批")`
|
|
|
} else {
|
|
|
- condition += ` AND (c.user_id = ? or d.approve_user_id = ?)`
|
|
|
+ condition += ` AND (c.seller_id = ? or d.approve_user_id = ?)`
|
|
|
}
|
|
|
pars = append(pars, sysUser.AdminId, sysUser.AdminId)
|
|
|
|