优化单据明细的sql

This commit is contained in:
季圣华
2021-07-28 23:41:56 +08:00
parent 8744e7eb6a
commit 740fdb34bd

View File

@@ -326,9 +326,8 @@
select
dep.id,dep.header_id,dep.material_id,dep.material_unit,dep.oper_number,
dep.basic_number,dep.unit_price,dep.tax_unit_price,dep.all_price,dep.remark,
dep.img,dep.incidentals,dep.depot_id,dep.another_depot_id,dep.tax_rate,
dep.tax_money,dep.tax_last_money,dep.other_field1,dep.other_field2,dep.other_field3,
dep.other_field4,dep.other_field5,dep.material_type
dep.depot_id,dep.another_depot_id,dep.tax_rate,
dep.tax_money,dep.tax_last_money,dep.material_type
from jsh_depot_item dep,jsh_material mat
where 1=1
<if test="depotheadId != null">