Explorar el Código

修复下单记录

胡轶钦 hace 6 años
padre
commit
1687b1a829
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2
    1
      models/statistics/goods.go

+ 2
- 1
models/statistics/goods.go Ver fichero

@@ -161,7 +161,8 @@ func (m *StatisticsDAO) GetGoodsOrderStatistics(status, usertype, caseids, begin
161 161
 					INNER JOIN sys_case d ON a.case_id = d.case_id
162 162
 					LEFT JOIN sys_user c ON b.user_id = c.user_id
163 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 167
 	if usertype != "" {
167 168
 		sql = sql + ` and a.user_type='` + usertype + `'`