Przeglądaj źródła

修复下单记录

胡轶钦 6 lat temu
rodzic
commit
1687b1a829
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2
    1
      models/statistics/goods.go

+ 2
- 1
models/statistics/goods.go Wyświetl plik

161
 					INNER JOIN sys_case d ON a.case_id = d.case_id
161
 					INNER JOIN sys_case d ON a.case_id = d.case_id
162
 					LEFT JOIN sys_user c ON b.user_id = c.user_id
162
 					LEFT JOIN sys_user c ON b.user_id = c.user_id
163
 					LEFT JOIN sys_case_area e ON a.area_id =e.area_id
163
 					LEFT JOIN sys_case_area e ON a.area_id =e.area_id
164
-					where d.case_id in ('` + strings.Replace(caseids, ",", "','", -1) + `')`
164
+					where d.case_id in ('` + strings.Replace(caseids, ",", "','", -1) + `')
165
+					and a.status > 0`
165
 
166
 
166
 	if usertype != "" {
167
 	if usertype != "" {
167
 		sql = sql + ` and a.user_type='` + usertype + `'`
168
 		sql = sql + ` and a.user_type='` + usertype + `'`