yansen il y a 6 ans
Parent
révision
6038ff73da
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      models/goods/orders.go

+ 2
- 1
models/goods/orders.go Voir le fichier

@@ -243,7 +243,8 @@ func (m *GoodsDAO) GetOrdersByRecord(recordid string) ([]OrdersWithGoods, error)
243 243
 	sql := `select a.*, c.case_name from ta_goods_orders a inner join sys_case_record b on a.case_id=b.case_id and date_format(a.create_date,'%Y-%m')=b.month
244 244
 	inner join sys_case c on a.case_id=c.case_id
245 245
 	where b.record_id='` + recordid +
246
-		`' and a.user_type != '` + USERTYPE_CUSTOMER + `' and b.status=` + strconv.Itoa(models.STATUS_NORMAL) + ` and a.status=` + strconv.Itoa(models.STATUS_NORMAL) + `and a.pay_type = '` + models.CONSUME_INNER + `' order by a.create_date desc`
246
+		`' and a.user_type != '` + USERTYPE_CUSTOMER + `' and b.status=` + strconv.Itoa(models.STATUS_NORMAL) +
247
+		` and a.status=` + strconv.Itoa(models.STATUS_NORMAL) + ` and a.pay_type = '` + models.CONSUME_INNER + `' order by a.create_date desc`
247 248
 	err := m.db.Sql(sql).Find(&orderList)
248 249
 	if err != nil {
249 250
 		return nil, err