解决商品明细sql查询的bug
This commit is contained in:
parent
cd47dd7c3b
commit
5c84df18e9
@ -6,10 +6,11 @@
|
|||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<select id="getDetailList" parameterType="com.jsh.erp.datasource.entities.MaterialExtendExample" resultMap="ResultMapList">
|
<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
|
from jsh_material_extend d
|
||||||
where d.material_id = #{materialId}
|
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
|
order by d.default_flag desc,d.id asc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user