09-02-完善税率字段对应sql

This commit is contained in:
2025-09-02 09:11:33 +08:00
parent 96e6c75949
commit 659e4e3d5f

View File

@ -17,6 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result column="unit" property="unit"/>
<result column="quantity" property="quantity"/>
<result column="unit_price" property="unitPrice"/>
<result column="tax_rate" property="taxRate"/>
<result column="remark" property="remark"/>
</resultMap>
<update id="updateBatchByIdByNull">
@ -50,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
b.unit as unit,
b.quantity as quantity,
b.unit_price as unitPrice,
b.tax_rate as taxRate,
b.remark as remark,
0 as level
from bus_billofquantities_limit_list b
@ -94,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
bbll.unit as unit,
bbll.quantity as quantity,
bbll.unit_price as unitPrice,
bbll.tax_rate as taxRate,
bbll.remark as remark,
SUM(btpll.num) AS useQuantity
FROM
@ -133,6 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
bbll.specification as specification,
bbll.unit as unit,
bbll.quantity as quantity,
bbll.tax_rate as taxRate,
bbll.unit_price as unitPrice,
bbll.remark as remark,
SUM(btpll.num) AS useQuantity