问题修改

This commit is contained in:
hayu 2025-08-06 16:55:34 +08:00
parent 342f27cfc8
commit d8e5d565e0
1 changed files with 22 additions and 20 deletions

View File

@ -454,8 +454,10 @@ 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 mt2.type_id=mt.parent_id LEFT JOIN ma_type mt2 on mt2.type_id=mt.parent_id
WHERE WHERE
mm.ma_status = '2' and
mm.ma_code like concat('%', #{maCode}, '%') mm.ma_code like concat('%', #{maCode}, '%')
<if test="maId != null">
and mm.ma_id = #{maId}
</if>
</select> </select>
<select id="selectMaId" resultType="java.lang.Long"> <select id="selectMaId" resultType="java.lang.Long">