功能优化

This commit is contained in:
mashuai 2025-09-12 09:08:42 +08:00
parent 023ad15fe4
commit b27830f800
1 changed files with 2 additions and 0 deletions

View File

@ -729,6 +729,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
mm.ma_id as maId, mm.ma_id as maId,
mt2.type_name as maName, mt2.type_name as maName,
mt.type_name as maModel, mt.type_name as maModel,
mt.type_name as maModel,
mm.ma_code as maCode, mm.ma_code as maCode,
mm.qr_code as qrCode, mm.qr_code as qrCode,
mm.type_id as typeId, mm.type_id as typeId,
@ -751,6 +752,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ma_type mt ON mt.type_id = mm.type_id LEFT JOIN ma_type mt ON mt.type_id = mm.type_id
LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id
LEFT JOIN sys_dict_data sd on mm.ma_status = sd.dict_value and sd.dict_type = "ma_machine_status" LEFT JOIN sys_dict_data sd on mm.ma_status = sd.dict_value and sd.dict_type = "ma_machine_status"
LEFT JOIN ma_supplier_info msi on msi.supplier_id = mm.ma_vender
where 1=1 where 1=1
<if test="maCode != null">and mm.ma_code LIKE CONCAT('%',#{maCode},'%')</if> <if test="maCode != null">and mm.ma_code LIKE CONCAT('%',#{maCode},'%')</if>