问题修改
This commit is contained in:
parent
342f27cfc8
commit
d8e5d565e0
|
|
@ -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">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue