|
|
@@ -159,6 +159,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
and l.sop_id = #{maps.sopId}
|
|
|
</if>
|
|
|
|
|
|
+ <if test="maps.periodId != null">
|
|
|
+ and l.period_id = #{maps.periodId}
|
|
|
+ </if>
|
|
|
<if test="maps.periodIds != null and maps.periodIds.size() > 0">
|
|
|
and l.period_id in
|
|
|
<foreach item="periodId" index="index" collection="maps.periodIds" open="(" separator="," close=")">
|
|
|
@@ -244,6 +247,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
#{sopId}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+ <if test="periodId != null">
|
|
|
+ and l.period_id = #{periodId}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by l.log_id desc
|
|
|
</select>
|