|
|
@@ -46,7 +46,7 @@ func (r *ErmcpPendingAudit) buildSql() string {
|
|
|
" union all " +
|
|
|
"select 7, count(1) BusinessFpQty from ermcp_contractoperateapply t where t.userid = %v and t.applystatus = 1 and t.operateapplytype=4" +
|
|
|
" union all " +
|
|
|
- "select 8, count(1) AreaStockQty from ermcp_contractoperateapply t where t.userid = %v and t.operateapplytype in(5,6,7,8)"
|
|
|
+ "select 8, count(1) AreaStockQty from ermcp_contractoperateapply t where t.userid = %v and t.operateapplytype in(5,6,7,8) and t.applystatus = 1"
|
|
|
sqlId = fmt.Sprintf(sqlId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId)
|
|
|
return sqlId
|
|
|
}
|