解决商品明细sql查询的bug

This commit is contained in:
jishenghua 2025-03-16 15:25:35 +08:00
parent cd47dd7c3b
commit 5c84df18e9

View File

@ -6,10 +6,11 @@
</resultMap>
<select id="getDetailList" parameterType="com.jsh.erp.datasource.entities.MaterialExtendExample" resultMap="ResultMapList">
select DISTINCT d.Id,d.bar_code,d.commodity_unit,d.sku,d.commodity_decimal,d.purchase_decimal,d.wholesale_decimal,d.low_decimal
select distinct d.id,d.bar_code,d.commodity_unit,d.sku,d.commodity_decimal,d.purchase_decimal,d.wholesale_decimal,
d.low_decimal,d.default_flag
from jsh_material_extend d
where d.material_id = #{materialId}
and ifnull(d.delete_Flag,'0') !='1'
and ifnull(d.delete_flag,'0') !='1'
order by d.default_flag desc,d.id asc
</select>