优化单据列表接口,增加总数量返回字段
This commit is contained in:
@@ -239,6 +239,12 @@
|
||||
and ifnull(jsh_depot_item.delete_flag,'0') !='1'
|
||||
</select>
|
||||
|
||||
<select id="getMaterialCountByHeaderId" resultType="java.math.BigDecimal">
|
||||
select sum(oper_number) from jsh_depot_item
|
||||
where header_id = #{id}
|
||||
and ifnull(delete_flag,'0') !='1'
|
||||
</select>
|
||||
|
||||
<select id="findInOutDetail" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="ResultWithInfoExMap">
|
||||
select dh.number,me.bar_code, m.`name` MName,m.model,m.standard,di.unit_price,di.material_unit as mUnit,
|
||||
di.oper_number,di.all_price, ifnull(di.tax_rate,0) tax_rate, ifnull(di.tax_money,0) tax_money, ifnull(di.tax_last_money,0) tax_last_money,
|
||||
@@ -908,5 +914,4 @@
|
||||
and dh.number!=#{number}
|
||||
and ifnull(dh.delete_flag,'0') !='1'
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user