Commit ead97580932058f758336daead055565c4f0080e

Authored by lixi
1 parent e417fdc0

优化用例代码

commons/api/entranceFeeBill_details.py
@@ -67,6 +67,9 @@ class entranceFeeBill_details(): @@ -67,6 +67,9 @@ class entranceFeeBill_details():
67 WHERE a.goods_id=b.id 67 WHERE a.goods_id=b.id
68 AND a.market_id={} 68 AND a.market_id={}
69 AND a.`status`=4 69 AND a.`status`=4
  70 + AND a.company_id IS NOT NULL
  71 + AND a.ic IS NOT NULL
  72 + AND a.cashier_name IS NOT NULL
70 ORDER BY a.id DESC LIMIT 1;""".format(sy1.user["sy_user01"]["firmId"]) 73 ORDER BY a.id DESC LIMIT 1;""".format(sy1.user["sy_user01"]["firmId"])
71 74
72 75
commons/api/entranceFeeBill_provesPage.py
@@ -49,6 +49,9 @@ class entranceFeeBill_provesPage(): @@ -49,6 +49,9 @@ class entranceFeeBill_provesPage():
49 AND a.market_id={} 49 AND a.market_id={}
50 AND a.yn=1 50 AND a.yn=1
51 AND c.fee_item_name LIKE "%检测费%" 51 AND c.fee_item_name LIKE "%检测费%"
  52 + AND a.company_id IS NOT NULL
  53 + AND a.ic IS NOT NULL
  54 + AND b.prove_type_code IS NOT NULL
52 ORDER BY a.id DESC LIMIT 1;""".format(sy1.user["sy_user01"]["firmId"]) 55 ORDER BY a.id DESC LIMIT 1;""".format(sy1.user["sy_user01"]["firmId"])
53 56
54 57