瀏覽代碼

11月8日库存管理

XMLWAN 2 年之前
父節點
當前提交
e731a91d9e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      service/print_data_service/schedule_dialysis/print_schedule_dialysis_service.go

+ 1 - 1
service/print_data_service/schedule_dialysis/print_schedule_dialysis_service.go 查看文件

@@ -300,7 +300,7 @@ func GetWarehouseOutInfoPrintList(orgid int64, startime int64, endtime int64) (o
300 300
 	if endtime > 0 {
301 301
 		db = db.Where("x.ctime<=?", endtime)
302 302
 	}
303
-	err = db.Select("x.patient_id,x.sys_record_time,x.good_id,sum(x.count) as count,t.good_name,t.specification_name,t.packing_unit,t.retail_price,t.packing_price,t.buy_price").Joins("left join xt_good_information as t on t.id = x.good_id").Group("x.good_id").Scan(&out).Error
303
+	err = db.Select("x.patient_id,x.sys_record_time,x.good_id,sum(x.count) as count,x.ctime,t.good_name,t.specification_name,t.packing_unit,t.retail_price,t.packing_price,t.buy_price").Joins("left join xt_good_information as t on t.id = x.good_id").Group("x.good_id").Scan(&out).Error
304 304
 	return out, err
305 305
 }
306 306