fix: OTC 라벨 약품 검색 API 오류 수정
- StockQty 컬럼 제거 (CD_GOODS 테이블에 없음)
This commit is contained in:
parent
76a4280ebd
commit
ac0e1ced0e
@ -5600,7 +5600,7 @@ def api_search_mssql_drug():
|
|||||||
# 바코드 또는 이름으로 검색
|
# 바코드 또는 이름으로 검색
|
||||||
sql = text("""
|
sql = text("""
|
||||||
SELECT TOP 20
|
SELECT TOP 20
|
||||||
DrugCode, Barcode, GoodsName, Saleprice, StockQty
|
DrugCode, Barcode, GoodsName, Saleprice
|
||||||
FROM CD_GOODS
|
FROM CD_GOODS
|
||||||
WHERE (Barcode LIKE :query OR GoodsName LIKE :query)
|
WHERE (Barcode LIKE :query OR GoodsName LIKE :query)
|
||||||
AND Barcode IS NOT NULL
|
AND Barcode IS NOT NULL
|
||||||
@ -5621,8 +5621,7 @@ def api_search_mssql_drug():
|
|||||||
'drug_code': row.DrugCode,
|
'drug_code': row.DrugCode,
|
||||||
'barcode': row.Barcode,
|
'barcode': row.Barcode,
|
||||||
'goods_name': row.GoodsName,
|
'goods_name': row.GoodsName,
|
||||||
'sale_price': float(row.Saleprice or 0),
|
'sale_price': float(row.Saleprice or 0)
|
||||||
'stock_qty': int(row.StockQty or 0)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return jsonify({
|
return jsonify({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user