|
@@ -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
|