Просмотр исходного кода

报销开发费用明细列表,费用列表新增
主报销查询修改

anderx лет назад: 2
Родитель
Сommit
19193be5a2
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/main/java/com/goafanti/common/mapper/ExpenseAccountMapper.xml

+ 4 - 1
src/main/java/com/goafanti/common/mapper/ExpenseAccountMapper.xml

@@ -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>