修改bug

This commit is contained in:
yangjun 2026-04-14 10:23:23 +08:00
parent 204763ea8d
commit bc331cc93c
1 changed files with 6 additions and 7 deletions

View File

@ -180,15 +180,14 @@
<select id="getSuppliersMaterialInfo" resultType="com.nu.dto.SuppliersMaterialInfoDto">
select a.id,a.material_name,a.specification_model,a.brand_type,a.manufacturer,b.category_name,c.type_name,a.material_img
from nu_config_material_info a
join nu_biz_suppliers_material_info d on a.id = d.wl_id
join nu_biz_suppliers_material_info d on a.id = d.wl_id and suppliers_id = #{suppliersId}
left join nu_config_material_category b on a.category_id = b.id
left join nu_config_material_type c on a.type_id = c.id
where a.type_id in
( select material_type_id from nu_biz_suppliers_material_type where suppliers_id = #{suppliersId}
<if test="materialTypeId != null and materialTypeId != ''">
and material_type_id = #{materialTypeId}
</if>
)
<where>
<if test="materialTypeId != null and materialTypeId != ''">
and a.type_id = #{materialTypeId}
</if>
</where>
</select>
<select id="getCategoryList" resultType="com.nu.entity.SuppliersMaterialTypeEntity">
select * from nu_config_material_category where id in (select parent_id from nu_biz_suppliers_material_type where suppliers_id = #{suppliersId} )