|
|
@@ -591,7 +591,10 @@
|
|
|
<select id="selectByaidAndPrid" resultType="com.goafanti.expenseAccount.bo.OutExpenseAccount">
|
|
|
SELECT
|
|
|
<include refid="selectDtailsSql"/>
|
|
|
- WHERE a.status= #{status}
|
|
|
+ WHERE 1=1
|
|
|
+ <if test="status !=null">
|
|
|
+ and a.status= #{status}
|
|
|
+ </if>
|
|
|
and a.prid= #{prid} and a.aid = #{aid}
|
|
|
</select>
|
|
|
|